mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-04 13:47:23 +01:00
* utf-8 fix from Rimgaudas Laucius
git-svn-id: trunk@556 -
This commit is contained in:
parent
dac1050c11
commit
cefa8ce9b9
@ -2996,7 +2996,12 @@ implementation
|
||||
concatwidestringchar(patternw,tcompilerwidechar(c))
|
||||
end
|
||||
else if iswidestring then
|
||||
concatwidestringchar(patternw,asciichar2unicode(c))
|
||||
begin
|
||||
if aktsourcecodepage='utf8' then
|
||||
concatwidestringchar(patternw,ord(c))
|
||||
else
|
||||
concatwidestringchar(patternw,asciichar2unicode(c))
|
||||
end
|
||||
else
|
||||
begin
|
||||
if len<255 then
|
||||
|
||||
@ -3,4 +3,5 @@
|
||||
begin
|
||||
w:='äüö';
|
||||
writeln(w);
|
||||
writeln('äa');
|
||||
end.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user