Modify ↓
#504 closed defect (fixed)
[PATCH] problems with german umlaut and shtools.py
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | critical | Milestone: | 0.6 |
Component: | Build slave | Version: | dev |
Keywords: | shtools, slave, umlaut | Cc: | xieyanbo@… |
Operating System: | Linux |
Description
i got the following error when a command executed by shtools returns a string with german umlaut in it:
2009-11-13 17:19:14 [INFO ] suse_update_desktop_file: Ungültige Option -- c 2009-11-13 17:19:14 [ERROR ] Internal error in build step 'build_productline' 2009-11-13 17:19:14 Traceback (most recent call last): 2009-11-13 17:19:14 File "/usr/local/lib/python2.5/site-packages/Bitten-0.7dev_r790-py2.5.egg/bitten/slave.py", line 327, in _execute_step 2009-11-13 17:19:14 step.execute(recipe.ctxt): 2009-11-13 17:19:14 File "/usr/local/lib/python2.5/site-packages/Bitten-0.7dev_r790-py2.5.egg/bitten/recipe.py", line 228, in execute 2009-11-13 17:19:14 ctxt.run(self, child.namespace, child.name, child.attr) 2009-11-13 17:19:14 File "/usr/local/lib/python2.5/site-packages/Bitten-0.7dev_r790-py2.5.egg/bitten/recipe.py", line 106, in run 2009-11-13 17:19:14 function(self, **args) 2009-11-13 17:19:14 File "/usr/local/lib/python2.5/site-packages/Bitten-0.7dev_r790-py2.5.egg/bitten/build/shtools.py", line 40, in exec_ 2009-11-13 17:19:14 output=output, args=args, dir_=dir_) 2009-11-13 17:19:14 File "/usr/local/lib/python2.5/site-packages/Bitten-0.7dev_r790-py2.5.egg/bitten/build/shtools.py", line 152, in execute 2009-11-13 17:19:14 output_file.write(out + os.linesep) 2009-11-13 17:19:14 UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 29: ordinal not in range(128) 2009-11-13 17:19:14 [DEBUG ] Sending POST request to 'http://ka-sl-trac01/trac-ProductLine/builds/7/steps/' 2009-11-13 17:19:14 [WARNING ] Stopping build due to failure
Attachments (1)
Change History (8)
comment:1 follow-up: ↓ 3 Changed 15 years ago by Xie Yanbo <xieyanbo@…>
- Cc xieyanbo@… added
- Priority changed from major to blocker
comment:2 Changed 15 years ago by Xie Yanbo <xieyanbo@…>
- Priority changed from blocker to critical
comment:3 in reply to: ↑ 1 Changed 15 years ago by Xie Yanbo <xieyanbo@…>
Replying to Xie Yanbo <xieyanbo@…>:
Using version 0.5.99 in gentoo.
Sorry the version 0.5.99 is my home build package based on bitten trunk repository, not gentoo official package.
Changed 15 years ago by Xie Yanbo <xieyanbo@…>
comment:4 Changed 15 years ago by Xie Yanbo <xieyanbo@…>
- Summary changed from problems with german umlaut and shtools.py to [PATCH] problems with german umlaut and shtools.py
comment:5 Changed 15 years ago by osimons
- Milestone changed from 0.7 to 0.6
Thanks for the patch! Makes sense, tests pass, and think I'll just commit it now.
comment:6 Changed 15 years ago by osimons
- Resolution set to fixed
- Status changed from new to closed
Patch committed to trunk in [795] - will merge to 0.6.x shortly.
comment:7 Changed 15 years ago by osimons
#533 closed as duplicate.
Note: See
TracTickets for help on using
tickets.
Confirm, get the same error log when bitten client catch any UTF-8 chinese words:
Using version 0.5.99 in gentoo.