You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Wei-Chiu Chuang (Jira)" <ji...@apache.org> on 2021/05/21 16:36:00 UTC
[jira] [Resolved] (HADOOP-17718) Explicitly set locale in the
Dockerfile
[ https://issues.apache.org/jira/browse/HADOOP-17718?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wei-Chiu Chuang resolved HADOOP-17718.
--------------------------------------
Fix Version/s: 3.4.0
3.3.1
Resolution: Fixed
> 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
> Assignee: Wei-Chiu Chuang
> Priority: Blocker
> Labels: pull-request-available
> Fix For: 3.3.1, 3.4.0
>
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
> 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: common-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org