Browse Source

tests: adapt test for codepage aware strings

git-svn-id: trunk@19565 -
paul 13 years ago
parent
commit
8feb3806b8
1 changed files with 1 additions and 6 deletions
  1. 1 6
      tests/webtbs/tw12993.pp

+ 1 - 6
tests/webtbs/tw12993.pp

@@ -1,11 +1,5 @@
 {$codepage cp866}
 {$codepage cp866}
 
 
-{ warning: this test will terminate successfully when run on systems that do
-  not support the character used below in the current code page, even if the
-  used compiler is buggy. On other systems, the test will properly fail if
-  the compiler is buggy.
-}
-
 {$ifdef unix}
 {$ifdef unix}
 uses
 uses
   cwstring;
   cwstring;
@@ -14,6 +8,7 @@ var
   s: ansistring;
   s: ansistring;
   ws, ws3: widestring;
   ws, ws3: widestring;
 begin
 begin
+    SetMultiByteConversionCodePage(866);
     // must not be converted
     // must not be converted
     s := '£';
     s := '£';
     if (length(s)<>1) or
     if (length(s)<>1) or