mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-14 14:29:14 +02:00
Fixes gettext crash under Windows CE and adds test case for it.
git-svn-id: trunk@12290 -
This commit is contained in:
parent
19a73853bd
commit
15e597682e
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -7131,6 +7131,7 @@ tests/tbs/tb0554.pp svneol=native#text/plain
|
|||||||
tests/tbs/tb0555.pp svneol=native#text/plain
|
tests/tbs/tb0555.pp svneol=native#text/plain
|
||||||
tests/tbs/tb0556.pp svneol=native#text/plain
|
tests/tbs/tb0556.pp svneol=native#text/plain
|
||||||
tests/tbs/tb0557.pp svneol=native#text/plain
|
tests/tbs/tb0557.pp svneol=native#text/plain
|
||||||
|
tests/tbs/tb0558.pp svneol=native#text/plain
|
||||||
tests/tbs/tb205.pp svneol=native#text/plain
|
tests/tbs/tb205.pp svneol=native#text/plain
|
||||||
tests/tbs/ub0060.pp svneol=native#text/plain
|
tests/tbs/ub0060.pp svneol=native#text/plain
|
||||||
tests/tbs/ub0069.pp svneol=native#text/plain
|
tests/tbs/ub0069.pp svneol=native#text/plain
|
||||||
|
@ -234,7 +234,7 @@ end;
|
|||||||
{$ifdef windows}
|
{$ifdef windows}
|
||||||
procedure GetLanguageIDs(var Lang, FallbackLang: string);
|
procedure GetLanguageIDs(var Lang, FallbackLang: string);
|
||||||
var
|
var
|
||||||
Buffer: array[1..4] of char;
|
Buffer: array[1..4] of {$ifdef Wince}WideChar{$else}char{$endif};
|
||||||
Country: string;
|
Country: string;
|
||||||
UserLCID: LCID;
|
UserLCID: LCID;
|
||||||
begin
|
begin
|
||||||
|
10
tests/tbs/tb0558.pp
Normal file
10
tests/tbs/tb0558.pp
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{ gettext was crashing under Windows CE. Not crashing should be considered a success }
|
||||||
|
|
||||||
|
uses gettext;
|
||||||
|
|
||||||
|
var
|
||||||
|
LangDefault, LangFallback: ansistring;
|
||||||
|
begin
|
||||||
|
GetLanguageIDs(LangDefault, LangFallback);
|
||||||
|
end.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user