Browse Source

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

git-svn-id: trunk@22464 -
Jonas Maebe 13 years ago
parent
commit
92064356f0
1 changed files with 1 additions and 1 deletions
  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;
 Function CharInSet(Ch:WideChar;Const CSet : TSysCharSet) : Boolean;
 begin
 begin
-  result:=(Ch<=#$FF) and (ansichar(ch) in CSet);
+  result:=(Ch<=#$FF) and (ansichar(byte(ch)) in CSet);
 end;
 end;