Paul Eggert <[email protected]> writes: > On 2025-11-14 02:16, Bruno Haible wrote: >> So, I think it can be done >> - by adding a small number of new rules (10-20 probably), >> - having the locale tied into the lexer >> <https://www.gnu.org/software/bison/manual/html_node/Lexical- >> Tie_002dins.html>, > > I suppose something like that should work most of the time, yes. > However, I worry that in practice some of the language-dependent > formats could be ambiguous. For example, it could be that two names > from different categories (weekday, month, era, or even number) > abbreviate to the same string. > > It's not a feature I'd recommend people using in software intended to > be reliable. It's better to stick with a standard format that works in > all locales.
I guess it would probably be easier to convince everyone to use ISO 8601 formatting when representing dates. I'm sure that will go as well as telling people to not use time zone abbreviations. IST being used for Indian Standard Time and Israel Standard Time (and I guess Irish Standard Time) causes me the most annoyance. :) Collin
