public inbox for libc-locales@sourceware.org
 help / color / mirror / Atom feed
* [Bug localedata/13825] New: Would like way to override 12h/24h locale data
@ 2012-03-09 11:43 hadess at hadess dot net
  2013-10-21 10:03 ` [Bug localedata/13825] " neleai at seznam dot cz
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: hadess at hadess dot net @ 2012-03-09 11:43 UTC (permalink / raw)
  To: libc-locales

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

             Bug #: 13825
           Summary: Would like way to override 12h/24h locale data
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: localedata
        AssignedTo: unassigned@sourceware.org
        ReportedBy: hadess@hadess.net
                CC: libc-locales@sources.redhat.com
    Classification: Unclassified


glibc's locale data doesn't offer a way for users to select 12h/24h display
based on user preference. The glibc doesn't offer that ability meaning that
some applications will use the locale default, and some applications would
respect the user's preference.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug localedata/13825] Would like way to override 12h/24h locale data
  2012-03-09 11:43 [Bug localedata/13825] New: Would like way to override 12h/24h locale data hadess at hadess dot net
@ 2013-10-21 10:03 ` neleai at seznam dot cz
  2014-06-26 14:01 ` fweimer at redhat dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: neleai at seznam dot cz @ 2013-10-21 10:03 UTC (permalink / raw)
  To: libc-locales

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

Ondrej Bilka <neleai at seznam dot cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |neleai at seznam dot cz
           Severity|normal                      |enhancement

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug localedata/13825] Would like way to override 12h/24h locale data
  2012-03-09 11:43 [Bug localedata/13825] New: Would like way to override 12h/24h locale data hadess at hadess dot net
  2013-10-21 10:03 ` [Bug localedata/13825] " neleai at seznam dot cz
@ 2014-06-26 14:01 ` fweimer at redhat dot com
  2016-02-19 10:48 ` [Bug localedata/13825] allow for user overriding of specific locale fields vapier at gentoo dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: fweimer at redhat dot com @ 2014-06-26 14:01 UTC (permalink / raw)
  To: libc-locales

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

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug localedata/13825] allow for user overriding of specific locale fields
  2012-03-09 11:43 [Bug localedata/13825] New: Would like way to override 12h/24h locale data hadess at hadess dot net
  2013-10-21 10:03 ` [Bug localedata/13825] " neleai at seznam dot cz
  2014-06-26 14:01 ` fweimer at redhat dot com
@ 2016-02-19 10:48 ` vapier at gentoo dot org
  2016-02-23 14:47 ` hadess at hadess dot net
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: vapier at gentoo dot org @ 2016-02-19 10:48 UTC (permalink / raw)
  To: libc-locales

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

Mike Frysinger <vapier at gentoo dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX
            Summary|Would like way to override  |allow for user overriding
                   |12h/24h locale data         |of specific locale fields

--- Comment #1 from Mike Frysinger <vapier at gentoo dot org> ---
i don't think we'll do this.  you could instead create your own locale and set
it to that.

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug localedata/13825] allow for user overriding of specific locale fields
  2012-03-09 11:43 [Bug localedata/13825] New: Would like way to override 12h/24h locale data hadess at hadess dot net
                   ` (2 preceding siblings ...)
  2016-02-19 10:48 ` [Bug localedata/13825] allow for user overriding of specific locale fields vapier at gentoo dot org
@ 2016-02-23 14:47 ` hadess at hadess dot net
  2016-02-23 20:51 ` vapier at gentoo dot org
  2016-02-23 20:51 ` carlos at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: hadess at hadess dot net @ 2016-02-23 14:47 UTC (permalink / raw)
  To: libc-locales

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

--- Comment #2 from Bastien Nocera <hadess at hadess dot net> ---
(In reply to Mike Frysinger from comment #1)
> i don't think we'll do this.  you could instead create your own locale and
> set it to that.

Seeing as we can't change the locale of running applications, I don't see how
this fixes our problem.

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug localedata/13825] allow for user overriding of specific locale fields
  2012-03-09 11:43 [Bug localedata/13825] New: Would like way to override 12h/24h locale data hadess at hadess dot net
                   ` (4 preceding siblings ...)
  2016-02-23 20:51 ` vapier at gentoo dot org
@ 2016-02-23 20:51 ` carlos at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: carlos at redhat dot com @ 2016-02-23 20:51 UTC (permalink / raw)
  To: libc-locales

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

Carlos O'Donell <carlos at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |carlos at redhat dot com

--- Comment #3 from Carlos O'Donell <carlos at redhat dot com> ---
(In reply to Bastien Nocera from comment #2)
> (In reply to Mike Frysinger from comment #1)
> > i don't think we'll do this.  you could instead create your own locale and
> > set it to that.
> 
> Seeing as we can't change the locale of running applications, I don't see
> how this fixes our problem.

Sure you can you can use setlocale() or uselocale(). We might also use a
tunable to flip the locale in the future.

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug localedata/13825] allow for user overriding of specific locale fields
  2012-03-09 11:43 [Bug localedata/13825] New: Would like way to override 12h/24h locale data hadess at hadess dot net
                   ` (3 preceding siblings ...)
  2016-02-23 14:47 ` hadess at hadess dot net
@ 2016-02-23 20:51 ` vapier at gentoo dot org
  2016-02-23 20:51 ` carlos at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: vapier at gentoo dot org @ 2016-02-23 20:51 UTC (permalink / raw)
  To: libc-locales

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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-02-23 20:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-09 11:43 [Bug localedata/13825] New: Would like way to override 12h/24h locale data hadess at hadess dot net
2013-10-21 10:03 ` [Bug localedata/13825] " neleai at seznam dot cz
2014-06-26 14:01 ` fweimer at redhat dot com
2016-02-19 10:48 ` [Bug localedata/13825] allow for user overriding of specific locale fields vapier at gentoo dot org
2016-02-23 14:47 ` hadess at hadess dot net
2016-02-23 20:51 ` vapier at gentoo dot org
2016-02-23 20:51 ` carlos at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).