mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-20 11:29:22 +02:00
* correctly handle code page names specified in upper case (mantis #28934)
git-svn-id: trunk@32202 -
This commit is contained in:
parent
c2caa6641c
commit
4decb81ac4
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -14815,6 +14815,7 @@ tests/webtbs/tw28850.pp svneol=native#text/plain
|
|||||||
tests/webtbs/tw2886.pp svneol=native#text/plain
|
tests/webtbs/tw2886.pp svneol=native#text/plain
|
||||||
tests/webtbs/tw2891.pp svneol=native#text/plain
|
tests/webtbs/tw2891.pp svneol=native#text/plain
|
||||||
tests/webtbs/tw2892.pp svneol=native#text/plain
|
tests/webtbs/tw2892.pp svneol=native#text/plain
|
||||||
|
tests/webtbs/tw28934.pp svneol=native#text/plain
|
||||||
tests/webtbs/tw2897.pp svneol=native#text/plain
|
tests/webtbs/tw2897.pp svneol=native#text/plain
|
||||||
tests/webtbs/tw2899.pp svneol=native#text/plain
|
tests/webtbs/tw2899.pp svneol=native#text/plain
|
||||||
tests/webtbs/tw2904.pp svneol=native#text/plain
|
tests/webtbs/tw2904.pp svneol=native#text/plain
|
||||||
|
@ -334,7 +334,7 @@ unit widestr;
|
|||||||
p : punicodemap;
|
p : punicodemap;
|
||||||
begin
|
begin
|
||||||
Result:=0;
|
Result:=0;
|
||||||
p:=getmap(s);
|
p:=getmap(lower(s));
|
||||||
if (p<>nil) then
|
if (p<>nil) then
|
||||||
Result:=p^.cp;
|
Result:=p^.cp;
|
||||||
end;
|
end;
|
||||||
@ -345,7 +345,7 @@ unit widestr;
|
|||||||
var
|
var
|
||||||
p2: pchar;
|
p2: pchar;
|
||||||
i, chars, codepointlen: sizeint;
|
i, chars, codepointlen: sizeint;
|
||||||
{$ENDIF FPC_HAS_CPSTRING}
|
{$ENDIF FPC_HAS_CPSRING}
|
||||||
begin
|
begin
|
||||||
{$IFDEF FPC_HAS_CPSTRING}
|
{$IFDEF FPC_HAS_CPSTRING}
|
||||||
if len=0 then
|
if len=0 then
|
||||||
|
14
tests/webtbs/tw28934.pp
Normal file
14
tests/webtbs/tw28934.pp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{ %norun }
|
||||||
|
{ %opt=-FcCP1252 }
|
||||||
|
|
||||||
|
program project1;
|
||||||
|
|
||||||
|
Type
|
||||||
|
WideArray = array [0..3] of Widechar;
|
||||||
|
|
||||||
|
var
|
||||||
|
Test: WideArray;
|
||||||
|
|
||||||
|
begin
|
||||||
|
Test := 'hmmm';
|
||||||
|
end.
|
Loading…
Reference in New Issue
Block a user