Lorque j'exécutais un script perl,
j'avais les warnings suivants:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "fr"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Cette action est irreversible, confirmez la suppression du commentaire ?
Signaler le commentaire
Veuillez sélectionner un problème
Nudité
Violence
Harcèlement
Fraude
Vente illégale
Discours haineux
Terrorisme
Autre
Olivier Exbrayat
A priori, les fichiers sources étaient encodés en Cp1252 alors que le moteur perl attendait de l'UTF-8.
A+
"Luc Martineau" a écrit dans le message de news:v0mSb.41984$
Bonjour,
Lorque j'exécutais un script perl, j'avais les warnings suivants:
perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "fr" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C").
En cherchant sur le net, j'ai lu qu'un 'export LC_ALL=C' Malheureusement, on n'explique pas le "pourquoi"
J'aimerais bien comprendre pourquoi ça règle mon problème.
Merci
A priori, les fichiers sources étaient encodés en Cp1252 alors que le
moteur perl attendait de l'UTF-8.
A+
"Luc Martineau" <xurraj___nospam___@yahoo.ca> a écrit dans le message de
news:v0mSb.41984$mf4.1436325@news20.bellglobal.com...
Bonjour,
Lorque j'exécutais un script perl,
j'avais les warnings suivants:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "fr"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
A priori, les fichiers sources étaient encodés en Cp1252 alors que le moteur perl attendait de l'UTF-8.
A+
"Luc Martineau" a écrit dans le message de news:v0mSb.41984$
Bonjour,
Lorque j'exécutais un script perl, j'avais les warnings suivants:
perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "fr" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C").
En cherchant sur le net, j'ai lu qu'un 'export LC_ALL=C' Malheureusement, on n'explique pas le "pourquoi"
J'aimerais bien comprendre pourquoi ça règle mon problème.
Merci
Ronan Le Hy
Luc Martineau writes:
perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "fr" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C").
% LANG=fr perl -Mlocale -le 'print "*OK*" if "351" =~ /w/' perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "", LC_ALL = "", LANG = "fr" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "fr"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
% LANG=fr perl -Mlocale -le 'print "*OK*" if "351" =~ /w/'
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "",
LC_ALL = "",
LANG = "fr"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "fr" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C").
% LANG=fr perl -Mlocale -le 'print "*OK*" if "351" =~ /w/' perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "", LC_ALL = "", LANG = "fr" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C").