Hi Martijin, Thank you for your reply, and sorry my mistake. My patch is here.
---------- diff -r 0958d0a9f44e get_source.sh --- a/get_source.sh Wed Oct 01 07:45:02 2014 -0700 +++ b/get_source.sh Wed Oct 01 16:56:33 2014 -0700 @@ -67,7 +67,7 @@ error "Could not locate Mercurial command" fi -hgversion="`hg --version 2> /dev/null | sed -n -e 's@^Mercurial Distributed SCM (version \([^+]*\).*)\$@\1@p'`" +hgversion="`LANG=en hg --version 2> /dev/null | sed -n -e 's@^Mercurial Distributed SCM (version \([^+]*\).*)\$@\1@p'`" if [ "x${hgversion}" = "x" ] ; then error "Could not determine Mercurial version of $hgwhere" fi ---------- In addition to this, I change the code which based on all *.po files of mercurial. ------- hgversion="`hg --version 2> /dev/null | head -n 1 | sed -n -e 's@^.* \([0-9\.]\+\).*)\$@\1@p'`" ------- Please check it. Cheers, KUBOTA Yuji 2014-10-01 17:02 GMT-07:00 Martijn Verburg <martijnverb...@gmail.com>: > Hi Yuji, > > Martijn here (we met at Hackergarden). The OpeJDK mailing lists don't > accept attachments, are you able to copy the content of the patch (diff) and > post in the body of the message? > > Cheers, > Martijn > > On 1 October 2014 16:59, Yuji Kubota <jark...@gmail.com> wrote: >> >> Hi all, >> I wrote this report and patch at Hackergarten in JavaOne2014. >> >> When I try to get source codes of jdk8 in Japanese environment, >> get_source.sh can not parse the "hg -version" correctly. >> So I can not get the source codes, because the result of "hg -version" >> has japanese charcthers. >> >> Mercurial use *.po files for i18n, so I set required LANGUAGE before >> call hg commands. >> Please review attached patch! :) >> >> And thank hackergarten for many advices! >> --- >> KUBOTA Yuji > >