Wei-Chiu Chuang created HADOOP-17718:
----------------------------------------
Summary: Explicitly set locale in the Dockerfile
Key: HADOOP-17718
URL: https://issues.apache.org/jira/browse/HADOOP-17718
Project: Hadoop Common
Issue Type: Bug
Components: build
Affects Versions: 3.3.1
Reporter: Wei-Chiu Chuang
When producing the RC bits for 3.3.1, the releasedocmaker step failed.
{noformat}
[INFO] --- exec-maven-plugin:1.3.1:exec (releasedocs) @ hadoop-common ---
Traceback (most recent call last):
File
"/build/source/patchprocess/apache-yetus-0.13.0/bin/../lib/releasedocmaker/releasedocmaker.py",
line 25, in <module>
releasedocmaker.main()
File
"/build/source/patchprocess/apache-yetus-0.13.0/lib/releasedocmaker/releasedocmaker/__init__.py",
line 979, in main
JIRA_BASE_URL)
File
"/build/source/patchprocess/apache-yetus-0.13.0/lib/releasedocmaker/releasedocmaker/utils.py",
line 199, in write_list
self.write_key_raw(jira.get_project(), line)
File
"/build/source/patchprocess/apache-yetus-0.13.0/lib/releasedocmaker/releasedocmaker/utils.py",
line 170, in write_key_raw
self.base.write(input_string)
UnicodeEncodeError: 'ascii' codec can't encode character '\xdc' in position 71:
ordinal not in range(128)
{noformat}
It turns out if the script reads jiras containing ascended characters, it can't
write the report.
Inside docker container, the default locale is "ANSI_X3.4-1968". Must set it to
utf-8 to support special characters.
Curious why it wasn't a problem before.
More details:
https://stackoverflow.com/questions/43356982/docker-python-set-utf-8-locale
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]