Browse Source

* Explicitly specify CP1252 for registry tests which depends on this CP.

Yuriy Sydorov 3 years ago
parent
commit
bcaa2c9758

+ 2 - 0
tests/test/packages/fcl-registry/tw35060a.pp

@@ -1,4 +1,5 @@
 { %TARGET=win32,win64,wince }
 { %TARGET=win32,win64,wince }
+{ %OPT=-Fccp1252 }
 
 
 program tw35060a;
 program tw35060a;
 
 
@@ -115,6 +116,7 @@ var
   Err: Integer;
   Err: Integer;
   CP: TSystemCodePage;
   CP: TSystemCodePage;
 begin
 begin
+  DefaultSystemCodePage:=1252;
   CreateTestKey;
   CreateTestKey;
   try
   try
     Name := 'äëï';
     Name := 'äëï';

+ 2 - 0
tests/test/packages/fcl-registry/tw35060c.pp

@@ -1,4 +1,5 @@
 { %TARGET=win32,win64,wince }
 { %TARGET=win32,win64,wince }
+{ %OPT=-Fccp1252 }
 
 
 program tw35060c;
 program tw35060c;
 
 
@@ -119,6 +120,7 @@ var
   Err: Integer;
   Err: Integer;
 
 
 begin
 begin
+  DefaultSystemCodePage:=1252;
   CreateTestKey;
   CreateTestKey;
   Name := 'äëï';
   Name := 'äëï';
   U := UnicodeString(Name);
   U := UnicodeString(Name);