浏览代码

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

git-svn-id: trunk@35556 -
yury 8 年之前
父节点
当前提交
3d1c988d02
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      rtl/android/cwstring.pp

+ 2 - 2
rtl/android/cwstring.pp

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