Skip to content

Commit 1b99630

Browse files
committed
lib/locale.t: IBM code page 924 locales are broken on z/OS
IBM products tend to view NBSP as both space and graphic; a violation of the POSIX standard. There is code in handy.h to compensate for this. But locales using code page 924 are outliers, and that general code for the platform doesn't work for them, so add them to the known bad list. (IBM-924 is an EBCDIC version of Latin-9, ISO 8859-15)
1 parent e89bd44 commit 1b99630

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/locale.t

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,11 @@ my %known_bad_locales = (
150150
darwin => qr/ ^ lt_LT.ISO8859 /ix,
151151
netbsd => qr/\bISO8859-2\b/i,
152152

153+
# NBSP is considered graphical in this locale, and
154+
# not a \s. Other IBM code pages have it be both,
155+
# and handy.h handles that case.
156+
os390 => qr/ IBM-924 /ix,
157+
153158
# This may be the same bug as the cygwin below; it's
154159
# generating malformed UTF-8 on the radix being
155160
# mulit-byte

0 commit comments

Comments
 (0)