You are not logged in.
Greetings,
My grep from the official package spits out some messages in German even though I never generated this locale.
Here is the output of locale -a
C
fr_FR.utf8
POSIXAnd the output of locale
LANG=fr_FR.UTF-8
LC_CTYPE="fr_FR.UTF-8"
LC_NUMERIC="fr_FR.UTF-8"
LC_TIME="fr_FR.UTF-8"
LC_COLLATE="fr_FR.UTF-8"
LC_MONETARY="fr_FR.UTF-8"
LC_MESSAGES="fr_FR.UTF-8"
LC_PAPER="fr_FR.UTF-8"
LC_NAME="fr_FR.UTF-8"
LC_ADDRESS="fr_FR.UTF-8"
LC_TELEPHONE="fr_FR.UTF-8"
LC_MEASUREMENT="fr_FR.UTF-8"
LC_IDENTIFICATION="fr_FR.UTF-8"
LC_ALL=Last edited by Idlusen (2021-04-27 14:40:12)
Offline
In particular?
strings /usr/bin/grep | grep '<german text you see here>'Offline
strings /usr/bin/grep | grep 'Übereinstimmungen in Binärdatei'returns nothing…
Offline
Provide of the output of that directly before running grep:
echo "$LANG"If using bash:
type grepIn other shells, if they do not support type:
which grepOffline
echo "$LANG" :
fr_FR.UTF-8type grep :
grep est un alias vers « grep --color=auto »If I issue unalias grep then LANG=C type grep :
grep is hashed (/usr/bin/grep)And even LANG=C pacman -Qo /usr/bin/grep :
/usr/bin/grep is owned by grep 3.6-1Nothing suspicious.
Edit: I also tried
grep Binärdatei /usr/share/locale/fr/LC_MESSAGES/grep.mofor sanity but that returns nothing as one should expect.
Last edited by Idlusen (2021-04-27 11:01:10)
Offline
Post the exact command and output.
Offline
grep -ir fuit ~/J/HoMM3\ Complete/grep: /home/idlusen/J/HoMM3 Complete/HEROES3.HLP: Übereinstimmungen in Binärdatei
grep: /home/idlusen/J/HoMM3 Complete/Data/VIDEO.VID: Übereinstimmungen in Binärdatei
grep: /home/idlusen/J/HoMM3 Complete/H3Blade.hlp: Übereinstimmungen in BinärdateiOffline
strace grep -i fruit /home/idlusen/J/HoMM3 Complete/HEROES3.HLP 2>&1 | grep locale
LC_ALL=C grep -i fruit /home/idlusen/J/HoMM3 Complete/HEROES3.HLPOffline
strace grep -i fuit /home/idlusen/J/"HoMM3 Complete/HEROES3.HLP" 2>&1 | grep localeoutputs:
openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/share/locale/fr_FR/LC_MESSAGES/grep.mo", O_RDONLY) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "/usr/share/locale/fr/LC_MESSAGES/grep.mo", O_RDONLY) = 3
openat(AT_FDCWD, "/usr/share/locale/es_ES/LC_MESSAGES/grep.mo", O_RDONLY) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "/usr/share/locale/es/LC_MESSAGES/grep.mo", O_RDONLY) = 4
openat(AT_FDCWD, "/usr/share/locale/de_DE/LC_MESSAGES/grep.mo", O_RDONLY) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "/usr/share/locale/de/LC_MESSAGES/grep.mo", O_RDONLY) = 4And
LC_ALL=C grep -i fuit /home/idlusen/J/"HoMM3 Complete/HEROES3.HLP"outputs:
grep: /home/idlusen/J/HoMM3 Complete/HEROES3.HLP: binary file matchesOffline
echo $LANGUAGEDo you have this here configured somewhere?
https://wiki.archlinux.org/index.php/Lo … ck_locales
You're looking at french, spanish and ultimately german and the utf locale paths aren't even considered.
Offline
Ah that’s it:
fr_FR:es_ES:de_DEI don’t know where or when I set that, great way to troll myself.
I guess that means the French translation isn’t available in the last update?
Last edited by Idlusen (2021-04-27 14:09:04)
Offline
It's still in https://translationproject.org/PO-files … 5.16.fr.po but https://translationproject.org/domain/grep.html also ends at that version… jenesaispas :-(
Something about the translation will have changed and that probably nuked the token, yes.
Offline