Explorar o código

* prevent code page conversion in CharInSet(widechar,tsyscharset)

git-svn-id: trunk@22464 -
Jonas Maebe %!s(int64=13) %!d(string=hai) anos
pai
achega
92064356f0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      rtl/objpas/sysutils/syswide.inc

+ 1 - 1
rtl/objpas/sysutils/syswide.inc

@@ -184,5 +184,5 @@ end;
 
 Function CharInSet(Ch:WideChar;Const CSet : TSysCharSet) : Boolean;
 begin
-  result:=(Ch<=#$FF) and (ansichar(ch) in CSet);
+  result:=(Ch<=#$FF) and (ansichar(byte(ch)) in CSet);
 end;