This is the mail archive of the libc-locales@sourceware.org mailing list for the GNU libc locales 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]

[Bug localedata/13825] allow for user overriding of specific locale fields


https://sourceware.org/bugzilla/show_bug.cgi?id=13825

--- Comment #4 from Mike Frysinger <vapier at gentoo dot org> ---
(In reply to Bastien Nocera from comment #2)

locales are selected by env vars.  so once you generate your custom locale and
point your LANG/etc... at it, then all all programs started after that point
get the updated settings.  this is also how locales simply work today: most
programs will run setlocale *once* at startup and then never again.

env vars themselves don't propagate into already running programs, but i don't
think we even want a knob that would take effect immediately -- it would mean
that every locale related call would have to check the FS for any override and
that completely negates the work down to optimize locales.  plus, even that
would not affect programs immediately ... you're relying on the programs not
using & caching there results.

allowing the knobs to change arbitrarily external to the program is also a bad
idea: it violates the status quo in POSIX and every other system thus far, and
it's inherently racy.  if i want to update multiple fields, programs might have
loaded one or two fields before your update, and then other ones after, and now
they're out of sync.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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