Skip to content

Commit

Permalink
TEST: Disable case test for u00ff on Windows.
Browse files Browse the repository at this point in the history
`towupper(0xff)` returns 0x9f on Windows.
  • Loading branch information
JanWielemaker committed Apr 26, 2024
1 parent 9a72d32 commit 7b8eed3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Tests/core/test_string.pl
Expand Up @@ -85,8 +85,11 @@
string_lower("aBc", L).
test(string_upper, L == "ABC") :-
string_upper("aBc", L).
:- if(\+ current_prolog_flag(windows, true)).
% Windows wtoupper(255) returns 09F, a control character.
test(string_upper, L == "WH\u0178") :- % Issue #1262 (iso -> wide)
string_upper("wh\u00ff", L).
:- endif.

:- end_tests(string).

Expand Down

0 comments on commit 7b8eed3

Please sign in to comment.