diff options
author | Christopher Faylor <me@cgf.cx> | 2002-06-26 09:29:41 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-06-26 09:29:41 +0400 |
commit | f279e522b05950655c6b4699ecd7a7f115261bc8 (patch) | |
tree | 9ef00309bf328db0d891c4078147d830d84375c4 /winsup/cygwin/environ.cc | |
parent | 109e4822783c39090bc4c1d3a0ff670ca56839bb (diff) |
* autoload (noload): Avoid clobbering bx register.
* environ.cc (codepage_init): Use case insensitive match.
* fhandler_console.cc (cp_get_internal): Delete.
(con_to_str): Use get_cp to derive code page.
(str_to_con): Ditto.
* miscfuncs.cc (get_cp): New function.
(sys_wcstombs): New function. Converted from macro.
(sys_mbstowcs): Ditto.
* winsup.h: Reflect above changes.
Diffstat (limited to 'winsup/cygwin/environ.cc')
-rw-r--r-- | winsup/cygwin/environ.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/winsup/cygwin/environ.cc b/winsup/cygwin/environ.cc index 9fc4d0ab8..ab280265c 100644 --- a/winsup/cygwin/environ.cc +++ b/winsup/cygwin/environ.cc @@ -448,20 +448,18 @@ codepage_init (const char *buf) if (!buf || !*buf) return; - if (strcmp (buf, "oem")== 0) + if (strcasematch (buf, "oem")) { current_codepage = oem_cp; set_file_api_mode (current_codepage); } - else if (strcmp (buf, "ansi")== 0) + else if (strcasematch (buf, "ansi")) { current_codepage = ansi_cp; set_file_api_mode (current_codepage); } else - { - debug_printf ("Wrong codepage name: %s", buf); - } + debug_printf ("Wrong codepage name: %s", buf); } static void |