X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=binutils%2Fwinduni.h;h=69c5e630cceca533c019fdfcdacaac1b8c7266c6;hb=9108bc33b1ca0b2e930c0cce5b1a0394e33e86be;hp=f22e25221ada74461b17f47f8aba28abe3251631;hpb=5ba684e24cc4737088e295c4f3d1bcd69c1bfdf6;p=deliverable%2Fbinutils-gdb.git diff --git a/binutils/winduni.h b/binutils/winduni.h index f22e25221a..69c5e630cc 100644 --- a/binutils/winduni.h +++ b/binutils/winduni.h @@ -1,6 +1,5 @@ /* winduni.h -- header file for unicode support for windres program. - Copyright 1997, 1998, 2002, 2007 - Free Software Foundation, Inc. + Copyright (C) 1997-2018 Free Software Foundation, Inc. Written by Ian Lance Taylor, Cygnus Support. Rewritten by Kai Tietz, Onevision. @@ -8,7 +7,7 @@ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or + the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -96,6 +95,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; @@ -118,6 +125,7 @@ extern const local_iconv_map *wind_find_codepage_info (unsigned); /* Convert an Codepage string to a unicode string. */ extern void unicode_from_codepage (rc_uint_type *, unichar **, const char *, rc_uint_type); +extern void unicode_from_ascii_len (rc_uint_type *, unichar **, const char *, rc_uint_type ); /* Convert an unicode string to an codepage string. */ extern void codepage_from_unicode (rc_uint_type *, const unichar *, char **, rc_uint_type);