[ 
https://issues.apache.org/jira/browse/HADOOP-17718?focusedWorklogId=600487&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-600487
 ]

ASF GitHub Bot logged work on HADOOP-17718:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 21/May/21 16:34
            Start Date: 21/May/21 16:34
    Worklog Time Spent: 10m 
      Work Description: jojochuang commented on pull request #3034:
URL: https://github.com/apache/hadoop/pull/3034#issuecomment-846089378


   Cherrypicked the commit to branch-3.3 and 3.3.1 (removed the two Docker 
files not available in 3.3.x)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 600487)
    Time Spent: 1h 20m  (was: 1h 10m)

> 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
>          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-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to