[illumos-Developer] webrev request: 187 locale -a dumps core

Alan Coopersmith alan.coopersmith at oracle.com
Mon Sep 13 22:17:06 PDT 2010


Garrett D'Amore wrote:
> There was a tricky optimization that tried to avoid reinitializing some
> arrays for C and ISO8859 style locales, but it was horribly wrong and
> broken when changing the locale multiple times.  locale -a does this
> many times, and died horribly.

Just FYI, gdm does the same, since sadly, that's the best way libc provides
at the moment to get a list of locales:

http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6920064

(ssh on the other hand exec's "locale -a" to get the list.)

-- 
	-Alan Coopersmith-        alan.coopersmith at oracle.com
	 Oracle Solaris Platform Engineering: X Window System




More information about the Developer mailing list