summaryrefslogtreecommitdiff
path: root/binutils/winduni.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2007-06-18 15:30:33 +0000
committerNick Clifton <nickc@redhat.com>2007-06-18 15:30:33 +0000
commit0ae923e8d923621c9553c33ef3d46902782871f2 (patch)
treef29caac8479b48eb063ba50c89cad101969ab451 /binutils/winduni.h
parentd2b6890afbb6c7edb0680aeb61c3db221c19bac2 (diff)
downloadbinutils-redhat-0ae923e8d923621c9553c33ef3d46902782871f2.tar.gz
* 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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/binutils/winduni.h b/binutils/winduni.h
index f22e25221a..82c3022831 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;