X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=windows%2Fwinucs.c;h=2ce1693b27dbf0ec7cd84d0bccac2982ec6040dd;hb=33c58dd91b8350bd47b363786a3f39587cf8ead6;hp=9abd83c7a0e4799e9e374610d88f57d2db0fa702;hpb=a1f3b7a358adaa7c2a98359cd0373aa823eeb14b;p=PuTTY.git diff --git a/windows/winucs.c b/windows/winucs.c index 9abd83c7..2ce1693b 100644 --- a/windows/winucs.c +++ b/windows/winucs.c @@ -427,6 +427,7 @@ static const struct cp_list_item cp_list[] = { {"CP437", 437}, {"CP620 (Mazovia)", 0, 128, mazovia}, {"CP819", 28591}, + {"CP852", 852}, {"CP878", 20866}, {"Use font encoding", -1}, @@ -1204,7 +1205,7 @@ void get_unitab(int codepage, wchar_t * unitab, int ftype) } } -int wc_to_mb(int codepage, int flags, wchar_t *wcstr, int wclen, +int wc_to_mb(int codepage, int flags, const wchar_t *wcstr, int wclen, char *mbstr, int mblen, char *defchr, int *defused, struct unicode_data *ucsdata) { @@ -1242,7 +1243,7 @@ int wc_to_mb(int codepage, int flags, wchar_t *wcstr, int wclen, mbstr, mblen, defchr, defused); } -int mb_to_wc(int codepage, int flags, char *mbstr, int mblen, +int mb_to_wc(int codepage, int flags, const char *mbstr, int mblen, wchar_t *wcstr, int wclen) { return MultiByteToWideChar(codepage, flags, mbstr, mblen, wcstr, wclen);