From a03262611b3660110bd496fc9b89a4e67237a22e 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: Wed, 18 Mar 2020 20:37:03 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/pip@956 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5 --- src_main/core/pichar.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src_main/core/pichar.cpp b/src_main/core/pichar.cpp index e696c4de..6db108d9 100644 --- a/src_main/core/pichar.cpp +++ b/src_main/core/pichar.cpp @@ -90,6 +90,8 @@ ushort charFromCodepage(const char * c, int size, const char * codepage, int * t int charCompare(const PIChar & f, const PIChar & s) { + if (f.isAscii() && s.isAscii()) + return strncmp(f.toCharPtr(), s.toCharPtr(), 1); return #ifdef PIP_ICU u_strCompare((const UChar*)f.toWCharPtr(), 1, (const UChar*)s.toWCharPtr(), 1, FALSE);