hedgewars/uLocale.pas
branchwebgl
changeset 8330 aaefa587e277
parent 8096 453917e94e55
parent 8107 ee21b816394f
child 8444 75db7bb8dce8
--- a/hedgewars/uLocale.pas	Sun Dec 02 00:03:16 2012 +0100
+++ b/hedgewars/uLocale.pas	Tue Dec 25 04:45:22 2012 +0100
@@ -40,7 +40,7 @@
     trevt_n: array[TEventId] of integer;
 
 procedure LoadLocale(FileName: shortstring);
-var s: shortstring;
+var s: ansistring;
     f: pfsFile;
     a, b, c: LongInt;
     first: array[TEventId] of boolean;
@@ -58,7 +58,7 @@
     begin
     while not pfsEof(f) do
         begin
-        pfsReadLn(f, s);
+        pfsReadLnA(f, s);
         if Length(s) = 0 then
             continue;
         if (s[1] < '0') or (s[1] > '9') then