#1 2013-01-03 06:57:10

dollee
Member
Registered: 2012-08-01
Posts: 3

mORMoti18n.pas compile problem on dbcs os system (like korean o/s)...

mORMoti18n.pas

original

procedure CRLF(P: PChar); // PChar = either PAnsiChar either PWideChar
begin
  repeat
    case P^ of
    #0: exit;
    '|': P^ := #13;
    '¤': P^ := #10; 
    end;
    inc(P);
  until false;
end;

modified

procedure CRLF(P: PChar); // PChar = either PAnsiChar either PWideChar
begin
  repeat
    case P^ of
    #0: exit;
    '|': P^ := #13;
    #164 : P^ := #10;   // ¤
    end;
    inc(P);
  until false;
end;

sorry my english...

Last edited by dollee (2013-01-03 06:58:13)

Offline

#2 2013-01-03 08:15:23

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: mORMoti18n.pas compile problem on dbcs os system (like korean o/s)...

There was an issue, even more than only when compiling with DBCS systems.
In fact, there could be problems at the file level.

We have introduced a BREAKING CHANGE: changed '¤' (#164) into '~' (#127) character to describe a LF char (#10), for better ASCII support  in text file.
ALL EXISTING .MSG FILES SHALL BE MODIFIED IN CONSEQUENCE  (by an automated search/replace in your favorite text editor).
See http://synopse.info/fossil/info/e04405451f

It will fix your problem, as border effect.
Thanks for the feedback!

Offline

Board footer

Powered by FluxBB