This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2] localedata: CLDRv29: update LC_ADDRESS.country_num values


On 04/13/2016 09:23 AM, Andreas Schwab wrote:
Either country_num is a plain number, then it should be written as a
plain number since the leading zero is ignored, or the leading zero is
significant, then it must be encoded as a string to preserve it.

FWIW, I tend to agree with Andreas here. Maybe a middle-ground would be to document somewhere that country_num is always to be formatted as a three-digit decimal value.

(At least POSIX specifies numbers in the locale definition as decimal, even with a leading zero. :)

Florian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]