Your patch works like a charm.
Thank you so much :)

On Thursday, December 1, 2016 at 9:02:34 AM UTC+8, Christian Hammond wrote:
>
> Hi,
>
> If you feel comfortable checking out your own RBTools and applying a 
> patch, you can give this change a try: 
> https://reviews.reviewboard.org/r/8559/
>
> Christian
>
> -- 
> Christian Hammond
> President/CEO of Beanbag <https://www.beanbaginc.com/>
> Makers of Review Board <https://www.reviewboard.org/>
>
> On Wed, Nov 30, 2016 at 4:51 PM, Christian Hammond <[email protected] 
> <javascript:>> wrote:
>
>> Hi Hansen,
>>
>> Sorry for the trouble. I've identified the problem and am checking on a 
>> fix. I'll point you to the review request when I have this working.
>>
>> Christian
>>
>> -- 
>> Christian Hammond
>> President/CEO of Beanbag <https://www.beanbaginc.com/>
>> Makers of Review Board <https://www.reviewboard.org/>
>>
>> On Tue, Nov 29, 2016 at 7:01 AM, Hansen Gao <[email protected] 
>> <javascript:>> wrote:
>>
>>> My bash and python default encoding are both UTF8.
>>> I do not know why I can not pass chinese characters as rbt parameters.
>>> Can any one help me?
>>>
>>> $echo $LANG
>>> en_US.UTF-8
>>>
>>>
>>> $python
>>> Python 2.7.9 (default, Jun 29 2016, 13:08:31)
>>> [GCC 4.9.2] on linux2
>>> Type "help", "copyright", "credits" or "license" for more information.
>>> >>> import sys
>>> >>> print(sys.getdefaultencoding())
>>> UTF8
>>> >>> print(sys.stdout.encoding)
>>> UTF-8
>>> >>> s='测试'
>>> >>> s
>>> '\xe6\xb5\x8b\xe8\xaf\x95'
>>> >>> print(s)
>>> 测试
>>> >>> sd=s.decode()
>>> >>> sd
>>> u'\u6d4b\u8bd5'
>>> >>> print(sd)
>>> 测试
>>>
>>>
>>> $rbt post -p --repository REPO1 --repository-type svn --server http://
>>> 127.0.0.1 --api-token apitoken123 --summary REPO1_Rev304 --description 
>>> 测试 --debug 304
>>> >>> RBTools 0.7.7
>>> >>> Python 2.7.9 (default, Jun 29 2016, 13:08:31)
>>> [GCC 4.9.2]
>>> >>> Running on Linux-3.16.0-4-amd64-x86_64-with-debian-8.1
>>> >>> Home = /home/neohope
>>> >>> Current directory = /home/neohope/repository/REPO1
>>> Traceback (most recent call last):
>>>   File "/usr/local/bin/rbt", line 11, in <module>
>>>     load_entry_point('RBTools==0.7.7', 'console_scripts', 'rbt')()
>>>   File 
>>> "/usr/local/lib/python2.7/dist-packages/RBTools-0.7.7-py2.7.egg/rbtools/commands/main.py"
>>> , line 133, in main
>>>     command.run_from_argv([RB_MAIN, command_name] + args)
>>>   File 
>>> "/usr/local/lib/python2.7/dist-packages/RBTools-0.7.7-py2.7.egg/rbtools/commands/__init__.py"
>>> , line 658, in run_from_argv
>>>     logging.debug('Command line: %s', subprocess.list2cmdline(argv))
>>>   File "/usr/lib/python2.7/subprocess.py", line 644, in list2cmdline
>>>     return ''.join(result)
>>>   File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
>>>     return codecs.utf_8_decode(input, errors, True)
>>> UnicodeDecodeError: 'utf8' codec can't decode byte 0xe6 in position 0: 
>>> unexpected end of dataEnter code here...
>>>
>>>
>>>
>>> -- 
>>> Supercharge your Review Board with Power Pack: 
>>> https://www.reviewboard.org/powerpack/
>>> Want us to host Review Board for you? Check out RBCommons: 
>>> https://rbcommons.com/
>>> Happy user? Let us know! https://www.reviewboard.org/users/
>>> --- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "reviewboard" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected] <javascript:>.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to