diff --git a/rtl/inc/charset.pp b/rtl/inc/charset.pp index b50b313cfc..b3bc902131 100644 --- a/rtl/inc/charset.pp +++ b/rtl/inc/charset.pp @@ -73,15 +73,15 @@ unit charset; ) : punicodemap;overload; procedure registermapping(p : punicodemap); function registerbinarymapping(const directory,cpname : string):Boolean; - function getmap(const s : string) : punicodemap; - function getmap(cp : word) : punicodemap; + function getmap(const s : string) : punicodemap; + function getmap(cp : word) : punicodemap; function mappingavailable(const s : string) : boolean;inline; function mappingavailable(cp :word) : boolean;inline; function getunicode(c : char;p : punicodemap) : tunicodechar;inline; function getunicode( AAnsiStr : pansichar; AAnsiLen : LongInt; - AMap : punicodemap; + AMap : punicodemap; ADest : tunicodestring ) : LongInt; function getascii(c : tunicodechar;p : punicodemap) : string; @@ -421,10 +421,7 @@ unit charset; Assign(f,filename); Reset(f); if (IOResult<>0) then - begin - Close(f); - exit; - end; + exit; locSize:=FileSize(f); if (locSize