Skip to content

Commit 9a266c0

Browse files
committed
Avoid use of Vietnamese UTF-8 locale on Solaris
On OmniOS r151042 (based on Solaris) the 'strfxm_l' function segfaults when: - LC_COLLATE_MASK is set to 'vi_VN.UTF-8' - the input contains "\xA8" Other locales and other characters appear to be unaffected. This commit causes 'loc_tools.pl' to not return this locale as being acceptable when asked for a list of them. Thus, our automated locale testing will avoid it. A Perl program can still switch into it explicitly. This issue is tracked by #20578, which includes a C-only reproducer not involving Perl.
1 parent e8954fb commit 9a266c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

t/loc_tools.pl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717

1818
my %known_bad_locales = ( # XXX eventually will need version info if and
1919
# when these get fixed.
20-
);
20+
solaris => [ 'vi_VN.UTF-8', ], # Use of U+A8 segfaults: GH #20578
21+
);
2122

2223
eval { require POSIX; import POSIX 'locale_h'; };
2324
my $has_locale_h = ! $@;

0 commit comments

Comments
 (0)