-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UTF-8 check misses locales with utf8
extension
#36
Comments
Hi, The regex |
I forgot to say that I used the version from the stable branch, not the one in the AUR. |
I see what's going on here - Please check out the |
Doesn't fix this, because the file from the develop branch also checks for |
I can't reproduce this after unsetting my $ echo $LC_TYPE
$ echo $LANG
$ grep `which trans` -e 'ENVIRON\["LC_CTYPE"\]' |
# $ echo $LC_TYPE
# $ echo $LANG
en_US.utf8
# $ grep ~/bin/trans -e 'ENVIRON\["LC_CTYPE"\]'
UserLang = ENVIRON["LC_CTYPE"] ?
parseLang(ENVIRON["LC_CTYPE"]) :
if (ENVIRON["LANG"] !~ /UTF-8$/ && ENVIRON["LC_CTYPE"] !~ /UTF-8$/) |
# $ echo $LC_CTYPE |
Obviously you have not updated your if (ENVIRON["LANG"] !~ /UTF-8$/ && ENVIRON["LC_CTYPE"] !~ /UTF-8$/) While the code in if (tolower(ENVIRON["LANG"]) !~ /utf-?8$/ && tolower(ENVIRON["LC_CTYPE"]) !~ /utf-?8$/) To use the one from |
Now it works. |
I am using arch too, it has the same problem. I am using the develop branch of
|
@pickfire What's your problem? Command-line output? Version of |
|
@pickfire Can you post the output of |
I had set one of the local variable to ' |
@pickfire OK. Those Shall be fixed in the |
Thanks. |
After a few git pull, when I ran
|
trans
always complains that my locale codeset is notUTF-8
, which is wrong:[WARNING] Your locale codeset (en_US.utf8) is not UTF-8. You have been warned.
echo $LANG
outputsen_US.utf8
. I have to admit that myLC_CTYPE
environment variable is not set, but I don't think I have to, because settingLANG
should be enough:The main problem is, that you are checking for
some_LANG.utf-8
in Language.awk:529 but not forsome_LANG.utf8
.I am using Arch Linux with Kernel release
3.17.4-1-ARCH
.The text was updated successfully, but these errors were encountered: