El día Friday, August 19, 2016 a las 12:06:47PM -0500, Derek Martin escribió:
> At any rate, check your full locale, and look for mismatches.
> LC_COLLATE should not affect the date output; that should be
> controlled by LC_TIME, which again, ideally should be inherited from
> LANG.
>
> On your system, is mutt a script that sources your login files, or
> something of the sort? Or do you still have another muttrc file that
> is getting sourced from your main .muttrc, and setting mutt's locale
> incorrectly?
>
> Because if you've set LANG correctly, it makes zero sense that you're
> getting the wrong output. SOMETHING is misconfigured.
I don't think so. Here you can see what is mutt and which files it is
open in this environment:
$ locale
LANG=es_ES.UTF-8
LC_CTYPE="es_ES.UTF-8"
LC_COLLATE=C
LC_TIME="es_ES.UTF-8"
LC_NUMERIC="es_ES.UTF-8"
LC_MONETARY="es_ES.UTF-8"
LC_MESSAGES="es_ES.UTF-8"
LC_ALL=
you have mail
$ file /usr/local/bin/mutt
/usr/local/bin/mutt: ELF 64-bit LSB executable, x86-64, version 1
(FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, for
FreeBSD 11.0 (1100092), not stripped
$ truss -o tr /usr/local/bin/mutt
you have mail
$ fgrep open tr > tr.open
tr.open contains:
openat(AT_FDCWD,"/etc/libmap.conf",O_CLOEXEC,00) = 3 (0x3)
openat(AT_FDCWD,"/var/run/ld-elf.so.hints",O_CLOEXEC,00) = 3 (0x3)
openat(AT_FDCWD,"/lib/libncursesw.so.8",O_CLOEXEC|O_VERIFY,00) = 3 (0x3)
openat(AT_FDCWD,"/usr/lib/libssl.so.8",O_CLOEXEC|O_VERIFY,00) = 3 (0x3)
openat(AT_FDCWD,"/lib/libcrypto.so.8",O_CLOEXEC|O_VERIFY,00) = 3 (0x3)
openat(AT_FDCWD,"/lib/libz.so.6",O_CLOEXEC|O_VERIFY,00) = 3 (0x3)
openat(AT_FDCWD,"/usr/local/lib/libsasl2.so.3",O_CLOEXEC|O_VERIFY,00) = 3 (0x3)
openat(AT_FDCWD,"/usr/local/lib/libidn.so.11",O_CLOEXEC|O_VERIFY,00) = 3 (0x3)
openat(AT_FDCWD,"/usr/local/lib/libintl.so.8",O_CLOEXEC|O_VERIFY,00) = 3 (0x3)
openat(AT_FDCWD,"/usr/local/lib/libiconv.so.2",O_CLOEXEC|O_VERIFY,00) = 3 (0x3)
openat(AT_FDCWD,"/usr/local/lib/libgpgme.so.11",O_CLOEXEC|O_VERIFY,00) = 3 (0x3)
openat(AT_FDCWD,"/usr/local/lib/libassuan.so.0",O_CLOEXEC|O_VERIFY,00) = 3 (0x3)
openat(AT_FDCWD,"/usr/local/lib/libgpg-error.so.0",O_CLOEXEC|O_VERIFY,00) = 3
(0x3)
openat(AT_FDCWD,"/usr/local/lib/libdb-5.3.so.0",O_CLOEXEC|O_VERIFY,00) = 3 (0x3)
openat(AT_FDCWD,"/lib/libc.so.7",O_CLOEXEC|O_VERIFY,00) = 3 (0x3)
openat(AT_FDCWD,"/lib/libthr.so.3",O_CLOEXEC|O_VERIFY,00) = 3 (0x3)
open("/usr/share/locale/es_ES.UTF-8/LC_CTYPE",O_RDONLY,037777750650) = 3 (0x3)
open("/usr/share/locale/es_ES.UTF-8/LC_MONETARY",O_CLOEXEC,013720646000) = 3
(0x3)
open("/usr/share/locale/es_ES.UTF-8/LC_NUMERIC",O_CLOEXEC,046000) = 3 (0x3)
open("/usr/share/locale/es_ES.UTF-8/LC_TIME",O_CLOEXEC,00) = 3 (0x3)
open("/usr/share/locale/es_ES.UTF-8/LC_MESSAGES",O_CLOEXEC,057000) = 3 (0x3)
open("/home/guru/.termcap.db",O_CLOEXEC,00) ERR#2 'No such file or
directory'
open("/home/guru/.termcap",O_CLOEXEC,00) ERR#2 'No such file or
directory'
open("/usr/share/misc/termcap.db",O_CLOEXEC,00) = 3 (0x3)
open("/etc/nsswitch.conf",O_CLOEXEC,0666) = 3 (0x3)
access("/usr/local/lib/opencollada/nss_compat.so.1",F_OK) ERR#2 'No such file
or directory'
access("/usr/local/lib/opencollada/nss_nis.so.1",F_OK) ERR#2 'No such file or
directory'
access("/usr/local/lib/opencollada/nss_files.so.1",F_OK) ERR#2 'No such file or
directory'
access("/usr/local/lib/opencollada/nss_dns.so.1",F_OK) ERR#2 'No such file or
directory'
open("/etc/pwd.db",O_CLOEXEC,00) = 3 (0x3)
open("/etc/resolv.conf",O_RDONLY,0666) = 3 (0x3)
open("/usr/local/etc/nntpserver",O_RDONLY,0666) ERR#2 'No such file or
directory'
open("/usr/local/etc/Muttrc",O_RDONLY,0666) = 3 (0x3)
^^^^^^^^^^^^^^^^^^^^^
(this file does not contain anything locale related)
open("/home/guru/.muttrc",O_RDONLY,0666) = 3 (0x3)
open("/home/guru/.mutt-mail_aliases",O_RDONLY,0666) = 4 (0x4)
open("/home/guru/.mutt-freundeskreis-filmfest",O_RDONLY,0666) = 4 (0x4)
open("/home/guru/.mutthistory",O_RDONLY,0666) ERR#2 'No such file or
directory'
open("/var/mail/guru",O_RDONLY,0666) = 3 (0x3)
open("/usr/local/share/locale/locale.alias",O_RDONLY,0666) = 3 (0x3)
openat(AT_FDCWD,"/usr/local/share/locale/es_ES.UTF-8/LC_MESSAGES/mutt.mo",O_RDONLY,00)
ERR#2 'No such file or directory'
openat(AT_FDCWD,"/usr/local/share/locale/es_ES.utf8/LC_MESSAGES/mutt.mo",O_RDONLY,00)
ERR#2 'No such file or directory'
openat(AT_FDCWD,"/usr/local/share/locale/es_ES/LC_MESSAGES/mutt.mo",O_RDONLY,00)
ERR#2 'No such file or directory'
openat(AT_FDCWD,"/usr/local/share/locale/es.UTF-8/LC_MESSAGES/mutt.mo",O_RDONLY,00)
ERR#2 'No such file or directory'
openat(AT_FDCWD,"/usr/local/share/locale/es.utf8/LC_MESSAGES/mutt.mo",O_RDONLY,00)
ERR#2 'No such file or directory'
openat(AT_FDCWD,"/usr/local/share/locale/es/LC_MESSAGES/mutt.mo",O_RDONLY,00) =
3 (0x3)
open("/usr/lib/i18n",O_NONBLOCK|O_DIRECTORY|O_CLOEXEC,020040100200) = 3 (0x3)
openat(AT_FDCWD,"/usr/lib/i18n/libiconv_std.so.4",O_CLOEXEC|O_VERIFY,00) = 3
(0x3)
open("/usr/share/i18n/esdb/esdb.alias.db",O_CLOEXEC,037777730670) = 3 (0x3)
open("/usr/share/i18n/esdb/esdb.dir.db",O_CLOEXEC,037777730670) = 3 (0x3)
open("/usr/share/i18n/esdb/ISO-8859/ISO-8859-1.esdb",O_CLOEXEC,037777733150) =
3 (0x3)
open("/usr/share/i18n/esdb/esdb.alias.db",O_CLOEXEC,037777730670) = 3 (0x3)
open("/usr/share/i18n/esdb/esdb.dir.db",O_CLOEXEC,037777730670) = 3 (0x3)
open("/usr/share/i18n/esdb/UTF/UTF-8.esdb",O_CLOEXEC,037777733150) = 3 (0x3)
open("/usr/lib/i18n",O_NONBLOCK|O_DIRECTORY|O_CLOEXEC,025247313223) = 3 (0x3)
openat(AT_FDCWD,"/usr/lib/i18n/libUTF8.so.4",O_CLOEXEC|O_VERIFY,00) = 3 (0x3)
open("/usr/share/i18n/csmapper/charset.alias.db",O_CLOEXEC,037777716710) ERR#2
'No such file or directory'
open("/usr/share/i18n/csmapper/charset.alias",O_CLOEXEC,0265331570) ERR#2 'No
such file or directory'
open("/usr/share/i18n/csmapper/charset.alias.db",O_CLOEXEC,037777716710) ERR#2
'No such file or directory'
open("/usr/share/i18n/csmapper/charset.alias",O_CLOEXEC,0265331570) ERR#2 'No
such file or directory'
open("/usr/share/i18n/csmapper/mapper.dir",O_CLOEXEC,037777714750) = 3 (0x3)
open("/usr/lib/i18n",O_NONBLOCK|O_DIRECTORY|O_CLOEXEC,020040100200) = 3 (0x3)
openat(AT_FDCWD,"/usr/lib/i18n/libmapper_none.so.4",O_CLOEXEC|O_VERIFY,00) = 3
(0x3)
open("/var/mail/guru",O_RDONLY,0666) = 3 (0x3)
open("/usr/share/zoneinfo/UTC",O_RDONLY,00) = 4 (0x4)
open("/usr/share/zoneinfo/posixrules",O_RDONLY,00) = 4 (0x4)
open("/etc/localtime",O_RDONLY,010) = 4 (0x4)
open("/usr/share/zoneinfo/posixrules",O_RDONLY,00) = 4 (0x4)
open("/home/guru/postponed",O_RDONLY,0666) = 4 (0x4)
--
Matthias Apitz, ✉ [email protected], ⌂ http://www.unixarea.de/ ☎
+49-176-38902045
"Ohne die Mauer hätte es Krieg gegeben" Fritz Streletz u.a.
"Sin el Muro hubiese habido guerra."