Browse Source

* android: Use proper code page when calling a fallback implementation.

git-svn-id: trunk@35556 -
yury 8 years ago
parent
commit
3d1c988d02
1 changed files with 2 additions and 2 deletions
  1. 2 2
      rtl/android/cwstring.pp

+ 2 - 2
rtl/android/cwstring.pp

@@ -125,7 +125,7 @@ begin
   conv:=GetConverter(cp);
   conv:=GetConverter(cp);
   if (conv = nil) and not ( (cp = CP_UTF8) or (cp = CP_ACP) ) then begin
   if (conv = nil) and not ( (cp = CP_UTF8) or (cp = CP_ACP) ) then begin
     // fallback implementation
     // fallback implementation
-    DefaultUnicode2AnsiMove(source,dest,DefaultSystemCodePage,len);
+    DefaultUnicode2AnsiMove(source,dest,cp,len);
     exit;
     exit;
   end;
   end;
 
 
@@ -166,7 +166,7 @@ begin
   conv:=GetConverter(cp);
   conv:=GetConverter(cp);
   if (conv = nil) and not ( (cp = CP_UTF8) or (cp = CP_ACP) ) then begin
   if (conv = nil) and not ( (cp = CP_UTF8) or (cp = CP_ACP) ) then begin
     // fallback implementation
     // fallback implementation
-    DefaultAnsi2UnicodeMove(source,DefaultSystemCodePage,dest,len);
+    DefaultAnsi2UnicodeMove(source,cp,dest,len);
     exit;
     exit;
   end;
   end;