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

git-svn-id: branches/cpstrrtl@25132 -
This commit is contained in:
Jonas Maebe 2013-07-19 16:28:27 +00:00
parent 155aafc255
commit e132a77709

View File

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