Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 230630 - locale format settings - Feature request.
Summary: locale format settings - Feature request.
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: 6
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Brian Brock
Depends On:
TreeView+ depends on / blocked
Reported: 2007-03-01 21:24 UTC by Robin
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2007-03-02 08:16:20 UTC

Attachments (Terms of Use)
en_CA@time (deleted)
2007-03-02 08:14 UTC, Jakub Jelinek
no flags Details

Description Robin 2007-03-01 21:24:20 UTC
Description of problem:
With more and more internalization of businesses, date formatting as provided by
the default locale's is getting more and more complicated.

Version-Release number of selected component (if applicable):

How reproducible:
Very easy. 

Steps to Reproduce:
1.  Select en_CA.utf8 as your locale
2.  Try to change date format to ISO 8601 from any of the tools
3.  Pull hair out.
4.  In a terminal type in date and see a non-ISO date format.
Actual results:
Even changing LC_TIME=en-DK.utf8 I still get dates in the wrong format.

Expected results:
With a tool like (ugh) Microsoft Windows that allows me to change the system
wide default formatting for all the LC_variables.  Something that allows
programs like OpenOffice that depend on the default locale settings for some of
its' features.

Additional info:
I have been trying things for the past few years but I am starting to realize
that the only way is going to be change is to learn how to make my own TZDATA
files to fit my requirements.

It would be nice if there was a tool that when you set your locale in the
Language settings that allowed you to set your date formats and measurements. 
Or a better selection of en_*.utf8_ISO locales.

I now know that this is a glibc related problem but there needs to be an easier
way for the desktop user.

Comment 1 Jakub Jelinek 2007-03-02 08:13:09 UTC
For date(1) you can customize the output easily from the command line as
much as you want (see the +FORMAT option), similarly most other programs
which use strftime(3).  If you really need to change the defaults in locale,
the locale format is standardized, localedef as its compiler as well and
you can easily copy most of the sections from some locale and only change the
ones you want, say by writing the attached ~/en_CA@time which inherits everything
from en_CA, but LC_TIME, edit it to suit your needs (the *fmt* strings are
the standard strftime(3) format strings) and then compile it, say
localedef -i ~/en_CA@time -f UTF-8 ~/en_CA.utf-8@time
for details.

Comment 2 Jakub Jelinek 2007-03-02 08:14:22 UTC
Created attachment 149094 [details]

Comment 3 Jakub Jelinek 2007-03-02 08:16:20 UTC
So, you can customize everything as much as you need.
If all you are looking is some GUI click here and click there tool that would
do that for you, then this request is misplaced, glibc certainly shouldn't
provide those.

Comment 4 Robin 2007-03-02 21:05:57 UTC
If this isn't the place to put this request, then where is it supposed to go?  I
don't argue about this point but for a desktop environment in a smaller
organization, this is important.

Comment 5 Jakub Jelinek 2007-03-02 21:15:07 UTC
File an enhancement request against the distribution component?

Note You need to log in before you can comment on or make changes to this bug.