diff options
author | Nick Clifton <nickc@redhat.com> | 2007-06-18 15:30:33 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2007-06-18 15:30:33 +0000 |
commit | d856f2ddfa3d037987610ecc0edbf75f31296971 (patch) | |
tree | c7758a45b5d8f12f2bd4ea57e4a1588263c89789 /binutils/winduni.h | |
parent | 5d41b3efe4d718fac501a7ee7afd96dbd62ded6e (diff) | |
download | gdb-d856f2ddfa3d037987610ecc0edbf75f31296971.zip gdb-d856f2ddfa3d037987610ecc0edbf75f31296971.tar.gz gdb-d856f2ddfa3d037987610ecc0edbf75f31296971.tar.bz2 |
* rclex.c: (cpp_line): Add code_page pragma support.
* windres.c: (usage, long_options, main): Add new option --codepage or -c.
* winduni.c: (wind_default_codepage, wind_current_codepage): New.
(unicode_from_ascii, ascii_from_unicode): Use wind_current_codepage as codepage parameter.
(unicode_print): Print 4 characters for hexadecimal values in unicode strings.
* winduni.h: (wind_default_codepage, wind_current_codepage): Export.
* doc/binutils.texi: Document new option.
* NEWS: Mention new feature.
Diffstat (limited to 'binutils/winduni.h')
-rw-r--r-- | binutils/winduni.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/binutils/winduni.h b/binutils/winduni.h index f22e252..82c3022 100644 --- a/binutils/winduni.h +++ b/binutils/winduni.h @@ -96,6 +96,14 @@ extern void unicode_print_quoted (FILE *, const unichar *, rc_uint_type); #define CP_OEM 1 /* Default OEM code page. */ #endif +/* Specifies the default codepage to be used for unicode + transformations. By default this is CP_ACP. */ +extern rc_uint_type wind_default_codepage; + +/* Specifies the currently used codepage for unicode + transformations. By default this is CP_ACP. */ +extern rc_uint_type wind_current_codepage; + typedef struct wind_language_t { unsigned id; |