From 0ae923e8d923621c9553c33ef3d46902782871f2 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 18 Jun 2007 15:30:33 +0000 Subject: * 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. --- binutils/winduni.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'binutils/winduni.h') 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; -- cgit v1.2.1