Actions
Bug #1569
closedlocaledef mishandles some multibyte locales
Start date:
2011-09-26
Due date:
% Done:
100%
Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
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
Actions