From eed9f1db515e367c5f3c39547d356a111b680c6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B5=D0=BB=D0=B8=D0=BF=D0=B5=D0=BD=D0=BA=D0=BE=20?= =?UTF-8?q?=D0=98=D0=B2=D0=B0=D0=BD?= Date: Fri, 6 Mar 2020 23:00:21 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/pip@924 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5 --- src_main/core/pichar.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src_main/core/pichar.cpp b/src_main/core/pichar.cpp index bd499804..9a416914 100644 --- a/src_main/core/pichar.cpp +++ b/src_main/core/pichar.cpp @@ -271,9 +271,11 @@ PIChar PIChar::toUpper() const { u_strToUpper(&c, 1, (const UChar*)(&ch), 1, 0, &e); return PIChar(c); #else +# ifdef WINDOWS ushort wc = 0; if (LCMapStringW(LOCALE_USER_DEFAULT, LCMAP_UPPERCASE, (LPCWSTR)&ch, 1, (LPWSTR)&wc, 1) == 1) return PIChar(wc); +# endif #endif return PIChar(toupper(ch)); } @@ -287,9 +289,11 @@ PIChar PIChar::toLower() const { u_strToLower(&c, 1, (const UChar*)(&ch), 1, 0, &e); return PIChar(c); #else +# ifdef WINDOWS ushort wc = 0; if (LCMapStringW(LOCALE_USER_DEFAULT, LCMAP_LOWERCASE, (LPCWSTR)&ch, 1, (LPWSTR)&wc, 1) == 1) return PIChar(wc); +# endif #endif return PIChar(tolower(ch)); }