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"
Then, I compiled the new locale ("localedef -c -i ..."), copied the resulting
directory to /usr/lib/locale/, and modified /etc/sysconfig/i18n to:
then restarted and... now the gnome-clock applet shows Monday as the first
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
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 @@
I've seen that last cvs version (
) doesn't contain the patch. So please, add the patch to the file.
Changed in cvs.
Subject: Bug 3320
Module name: libc
Changes by: firstname.lastname@example.org 2007-01-12 14:59:44
localedata : ChangeLog
* locales/es_ES (LC_TIME): Add week, first_weekday, and first_workday.