瀏覽代碼

- reverted optimisation from r24962, it's already performed in SetCodePage()

git-svn-id: branches/cpstrrtl@25132 -
Jonas Maebe 12 年之前
父節點
當前提交
e132a77709
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      rtl/inc/ustrings.inc

+ 1 - 2
rtl/inc/ustrings.inc

@@ -2295,6 +2295,5 @@ End;
 Function ToSingleByteFileSystemEncodedFileName(const Str: RawByteString): RawByteString;
 Function ToSingleByteFileSystemEncodedFileName(const Str: RawByteString): RawByteString;
 Begin
 Begin
   Result:=Str;
   Result:=Str;
-  if StringCodePage(Result)<>DefaultFileSystemCodePage then
-    SetCodePage(Result,DefaultFileSystemCodePage,True);
+  SetCodePage(Result,DefaultFileSystemCodePage,True);
 End;
 End;