Project

General

Profile

Bug #1569

localedef mishandles some multibyte locales

Added by Garrett D'Amore almost 8 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Normal
Category:
locale - data and messages
Start date:
2011-09-26
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

As Yao <> 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

Related to illumos gate - Bug #1959: Assertion failed: p->key == key, file ../port/locale/collate.c, line 199, function substsearch in el_{CY,GR}.UTF-8 localesResolved2012-01-06

Actions

History

#1

Updated by Garrett D'Amore over 7 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 <>
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 <>
Reviewed by: Gordon Ross <>
Reviewed by: John Sonnenschein <>
Reviewed by: Robert Mustacchi <>
Approved by: Richard Lowe <>

Also available in: Atom PDF