public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug localedata/3320] New: es_ES : First week day is Monday (not Sunday)
@ 2006-10-08 16:00 localio876 at yahoo dot es
  2006-10-12 21:51 ` [Bug localedata/3320] " drepper at redhat dot com
  2007-01-12 15:00 ` cvs-commit at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: localio876 at yahoo dot es @ 2006-10-08 16:00 UTC (permalink / raw)
  To: glibc-bugs

Hi,

There's probably a bug in the es_ES locale: The first day of the week is
assigned to Sunday, but here, in Spain, the first day of the week is Monday.

I discovered the bug in my gnome-clock applet: weeks started on Sunday, not on
Monday. I did a search in google, and found an article (
http://gentoo-wiki.com/HOWTO_localedef ) that describes the same problem for
British and Ubuntu. In my case, the problem is for Spanish and Fedora, but the
fix is the same.

By following the steps of that article, I copied the "es_ES" file to a new
"es_ES.utf8@iso" file, and added these new lines (just before the "END LC_TIME"
tag):

    week    7;19971130;5
    first_weekday   2
    first_workday   2

Then, I compiled the new locale ("localedef -c -i ..."), copied the resulting
directory to /usr/lib/locale/, and modified /etc/sysconfig/i18n to:

    LANG="es_ES.utf8@iso"
    SUPPORTED="es_ES.UTF-8:es_ES:es"

then restarted and... now the gnome-clock applet shows Monday as the first
weekday!! :-)

But, as the article says, it's a temporal fix to solve the problem. The real fix
is to patch the official glibc "es_ES" file. This is the diff on my original
es_ES (glibc-2.4-11):

    diff -u es_ES es_ES.utf8\@iso
    --- es_ES       2006-10-08 17:39:22.000000000 +0200
    +++ es_ES.utf8@iso      2006-10-08 17:39:47.000000000 +0200
    @@ -2183,6 +2183,9 @@
     date_fmt       "<U0025><U0061><U0020><U0025><U0062><U0020><U0025><U0065>/
     <U0020><U0025><U0048><U003A><U0025><U004D><U003A><U0025><U0053><U0020>/
     <U0025><U005A><U0020><U0025><U0059>"
    +week    7;19971130;5
    +first_weekday   2
    +first_workday   2
     END LC_TIME
    
     LC_PAPER

I've seen that last cvs version (
http://sourceware.org/cgi-bin/cvsweb.cgi/~checkout~/libc/localedata/locales/es_ES?rev=1.16&cvsroot=glibc
) doesn't contain the patch. So please, add the patch to the file.

Thank you

-- 
           Summary: es_ES : First week day is Monday (not Sunday)
           Product: glibc
           Version: 2.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: localedata
        AssignedTo: libc-locales at sources dot redhat dot com
        ReportedBy: localio876 at yahoo dot es
                CC: glibc-bugs at sources dot redhat dot com


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug localedata/3320] es_ES : First week day is Monday (not Sunday)
  2006-10-08 16:00 [Bug localedata/3320] New: es_ES : First week day is Monday (not Sunday) localio876 at yahoo dot es
@ 2006-10-12 21:51 ` drepper at redhat dot com
  2007-01-12 15:00 ` cvs-commit at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: drepper at redhat dot com @ 2006-10-12 21:51 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2006-10-12 21:51 -------
Changed in cvs.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug localedata/3320] es_ES : First week day is Monday (not Sunday)
  2006-10-08 16:00 [Bug localedata/3320] New: es_ES : First week day is Monday (not Sunday) localio876 at yahoo dot es
  2006-10-12 21:51 ` [Bug localedata/3320] " drepper at redhat dot com
@ 2007-01-12 15:00 ` cvs-commit at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2007-01-12 15:00 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2007-01-12 14:59 -------
Subject: Bug 3320

CVSROOT:	/cvs/glibc
Module name:	libc
Branch: 	glibc-2_5-branch
Changes by:	jakub@sourceware.org	2007-01-12 14:59:44

Modified files:
	localedata     : ChangeLog 
	localedata/locales: es_ES 

Log message:
	[BZ #3320]
	* locales/es_ES (LC_TIME): Add week, first_weekday, and first_workday.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/libc/localedata/ChangeLog.diff?cvsroot=glibc&only_with_tag=glibc-2_5-branch&r1=1.603&r2=1.603.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/libc/localedata/locales/es_ES.diff?cvsroot=glibc&only_with_tag=glibc-2_5-branch&r1=1.16&r2=1.16.2.1



-- 


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

end of thread, other threads:[~2007-01-12 15:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-08 16:00 [Bug localedata/3320] New: es_ES : First week day is Monday (not Sunday) localio876 at yahoo dot es
2006-10-12 21:51 ` [Bug localedata/3320] " drepper at redhat dot com
2007-01-12 15:00 ` cvs-commit at gcc dot gnu dot org

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).