Summary: | app-doc/kicad-doc-5.1.4 - /usr/bin/a2x: /usr/lib64/python3.6/encodings/ascii.py: UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 6015: ordinal not in range(128) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Bob Johnson <bob> |
Component: | Current packages | Assignee: | Zoltan Puskas <zoltan> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | proxy-maint |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
Substitute ASCII for utf8 characters |
Description
Bob Johnson
2019-11-13 01:42:35 UTC
Created attachment 595924 [details]
build.log
Created attachment 595936 [details, diff]
Substitute ASCII for utf8 characters
Perhaps my system, or the ebuild, isn't properly handling utf8? In any case, replacing the few utf8 characters from the docs with ASCII equivalents fixed the problem.
I cannot repro, ebuild emerges just fine, though my system is UTF-8 enabled. It could be that your system misses some locale, though I see you also use UTF-8 based on $LANG. Maybe your system's locale is corrupted? Could you please try running `locale-gen` as root and then trying to emerge kicad-docs again? # locale-gen * Generating 9 locales (this might take a while) with 4 jobs * (1/9) Generating en_US.ISO-8859-1 ... [ ok ] * (3/9) Generating es_ES.ISO-8859-1 ... [ ok ] * (5/9) Generating es_MX.ISO-8859-1 ... [ ok ] * (4/9) Generating es_ES.UTF-8 ... [ ok ] * (2/9) Generating en_US.UTF-8 ... [ ok ] * (7/9) Generating ja_JP.EUC-JP ... [ ok ] * (8/9) Generating ja_JP.UTF-8 ... [ ok ] * (9/9) Generating C.UTF-8 ... [ ok ] * (6/9) Generating es_MX.UTF-8 ... [ ok ] * Generation complete * Adding locales to archive ... [ ok ] # However, emerging app-doc/kicad-doc-5.1.4 (with my patch removed) generates the same error. I'll dig around some more and see if I can determine if there's something else happening on my system. I've had kicad-doc on the system for some time. I tried downgrading to kicad-doc-5.1.2 and got the same error, and I didn't have this issue back on June 4. Other than for gcc I'm not sure what's changed, but I'll have to dig around. $ genlop kicad-doc * app-doc/kicad-doc Sat Jun 18 10:23:48 2016 >>> app-doc/kicad-doc-4.0.2 Sat Jun 25 09:28:38 2016 >>> app-doc/kicad-doc-4.0.2 Sun Jan 15 09:03:06 2017 >>> app-doc/kicad-doc-4.0.1 Wed Apr 5 08:57:38 2017 >>> app-doc/kicad-doc-4.0.4 Thu Apr 20 16:04:33 2017 >>> app-doc/kicad-doc-4.0.4 Thu Nov 23 23:08:39 2017 >>> app-doc/kicad-doc-4.0.4 Sun Dec 3 05:43:29 2017 >>> app-doc/kicad-doc-4.0.4 Tue Jul 10 09:35:56 2018 >>> app-doc/kicad-doc-4.0.7 Thu Nov 8 01:47:42 2018 >>> app-doc/kicad-doc-5.0.0 Thu Jan 3 09:57:17 2019 >>> app-doc/kicad-doc-5.0.1 Mon Apr 8 22:20:42 2019 >>> app-doc/kicad-doc-5.1.0 Tue Jun 4 10:41:25 2019 >>> app-doc/kicad-doc-5.1.2 Tue Nov 12 20:51:15 2019 >>> app-doc/kicad-doc-5.1.4 Thu Nov 14 06:27:25 2019 >>> app-doc/kicad-doc-5.1.4 These are my current locale settings: # locale LANG=en_US.utf8 LC_CTYPE=C LC_NUMERIC="en_US.utf8" LC_TIME="en_US.utf8" LC_COLLATE=C LC_MONETARY="en_US.utf8" LC_MESSAGES="en_US.utf8" LC_PAPER="en_US.utf8" LC_NAME="en_US.utf8" LC_ADDRESS="en_US.utf8" LC_TELEPHONE="en_US.utf8" LC_MEASUREMENT="en_US.utf8" LC_IDENTIFICATION="en_US.utf8" LC_ALL= If I run the following, it builds fine: $ export LC_ALL=en_US.utf8 ; emerge -1v kicad-doc Of course, setting it permanently messes up my 'C' sorting order with LC_COLLATE. In any case, it does look like something doesn't like my "C" locale settings. This might be an issue in asciidoc rather than kicad-doc. In any case, might as well go ahead and close this bug. It doesn't look like kicad-doc itself is to blame. I can repro the error only if I set LC_ALL=C. If I change my locales to what you have (i.e. everything "en_US.utf8" except for LC_CTYPE and LC_COLLATE which are C) kicad-doc still emerges successfully. In fact I can emerge kicad-doc even if my locales are: # locale LANG=en_US.utf8 LC_CTYPE=C LC_NUMERIC=C LC_TIME=C LC_COLLATE=C LC_MONETARY=C LC_MESSAGES=C LC_PAPER=C LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=C LC_IDENTIFICATION=C LC_ALL= As long as LC_ALL is not set to C, it works. Given that you've emerged kicad-doc successfully previously I'd say it's very likely something else going on your system regarding locales. One more thing. In the error report you can see that the failure happens in Python, when it tries to decode the Unicode string. Python requires UTF-8 encoding to be set on the runtime environment for it to be able to work with unicode character and there is not much workaround for that. |