Skip to content
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

Locale issue on Arch #113

Closed
milasudril opened this issue Jun 25, 2018 · 5 comments
Closed

Locale issue on Arch #113

milasudril opened this issue Jun 25, 2018 · 5 comments

Comments

@milasudril
Copy link
Owner

It appears that there is a problem with using the C.UTF-8 locale on Arch:

doc/index.sh: line 29: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8): No such file or directory
Traceback (most recent call last):
  File "doc/makepage.py", line 603, in <module>
    main(sys.argv[1:])
  File "doc/makepage.py", line 538, in main
    tree=ET.parse(sys.stdin)
  File "/usr/lib/python3.6/xml/etree/ElementTree.py", line 1196, in parse
    tree.parse(source, parser)
  File "/usr/lib/python3.6/xml/etree/ElementTree.py", line 597, in parse
    self._root = parser._parse_whole(source)
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 6, column 14
Error: I/O errordoc/index.xml: Compilation failed with status 1.
make: *** [Makefile:4: release] Error 255
make  114.35s user 10.03s system 72% cpu 2:51.76 total```

This breaks compilation of the HTML version of the manual.
@mxmilkiib
Copy link

mxmilkiib commented Jun 25, 2018

$ locale -a
C
en_GB.utf8
POSIX

$ locale
LANG=en_GB.UTF-8
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=

locale on the Arch Wiki

The non-zero exit code is a problem for creating an Arch PKGBUILD. Here's my incomplete PKGBUILD for Anja.

@mxmilkiib
Copy link

commercialhaskell/stack#856 appears to have the answer

@milasudril
Copy link
Owner Author

Try to change the script so it changes the locale to C or POSIX instead. I need to verify that it works on Ubuntu though.

@mxmilkiib
Copy link

mxmilkiib commented Jun 26, 2018

I tried just "C" but it failed, then "POSIX", but that failed also, so I tried "en_GB.utf8" and it was juuust right! :)

With a hacky sed change, the PKGBUILD works. Anja is now in the AUR. Edit; hack is now an echo $LANG

@mxmilkiib
Copy link

That appears to work, thanks! I've updated the PKGBUILD in the AUR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants