Parcourir la source

* Set both DefaultSystemCodePage in runtime and source file code page to 1252 in order the test perform correctly on all systems.

git-svn-id: trunk@35554 -
yury il y a 8 ans
Parent
commit
4ec547301d
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      tests/webtbs/tw6737.pp

+ 2 - 0
tests/webtbs/tw6737.pp

@@ -1,4 +1,5 @@
 { %skiptarget=os2,emx }
 { %skiptarget=os2,emx }
+{$codepage cp1252}
 {$mode objfpc}
 {$mode objfpc}
 {$H+}
 {$H+}
 
 
@@ -15,6 +16,7 @@ VAR
   t: WideString;
   t: WideString;
   err : boolean;
   err : boolean;
 BEGIN
 BEGIN
+  DefaultSystemCodePage:=1252;
   s := 'This is a test.'#961#967;
   s := 'This is a test.'#961#967;
   t := 'test.'#961#967;
   t := 'test.'#961#967;
   IF AnsiEndsStr(t, s) THEN
   IF AnsiEndsStr(t, s) THEN