Bug #1569
closedlocaledef mishandles some multibyte locales
100%
Description
As Yao <yffbrave@gamail.com> noticed, there are two problems in localedef:
1) the type.c incorrectly assumes signed values for the wc which after conversion can actually be very large unsigned values (giving negative indices into certain arrays.)
2) wide.c miscounts strlen() leading to incorrect assumption of a truncated string.
This was detected while Yao was adding support for GB18030.
Related issues
Updated by Garrett D'Amore over 10 years ago
- Status changed from New to Resolved
- % Done changed from 80 to 100
- Tags deleted (
needs-triage)
Resolved in:
changeset: 13591:0b83d70b9fe5
tag: tip
user: Garrett D'Amore <garrett@damore.org>
date: Fri Feb 03 16:50:30 2012 -0800
description:
852 Update data files for localedef UTF-8 locales from CLDR v2.0.1
1569 localedef mishandles some multibyte locales
Reviewed by: Richard Lowe <richlowe@richlowe.net>
Reviewed by: Gordon Ross <gwr@nexenta.com>
Reviewed by: John Sonnenschein <johnsonnenschein@gmail.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Approved by: Richard Lowe <richlowe@richlowe.net>