[Bug 737050] New: *.changes encoding broken in submit request
https://bugzilla.novell.com/show_bug.cgi?id=737050 https://bugzilla.novell.com/show_bug.cgi?id=737050#c0 Summary: *.changes encoding broken in submit request Classification: Internal Novell Products Product: openSUSE Build Service Version: 2.3 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: osc AssignedTo: adrian@suse.com ReportedBy: jw@suse.com QAContact: adrian@suse.com CC: coolo@suse.com Found By: --- Blocker: --- We have correct utf8 encoding in the changes file of this package: osc cat devel:languages:perl/perl-Module-Signature perl-Module-Signature.changes | xxd -s 0xf0 -l 0x80 00000f0: 0a57 6564 2044 6563 2031 3420 3132 3a31 .Wed Dec 14 12:1 0000100: 343a 3437 2055 5443 2032 3031 3120 2d20 4:47 UTC 2011 - 0000110: 636f 6f6c 6f40 7375 7365 2e63 6f6d 0a0a coolo@suse.com.. 0000120: 2d20 7570 6461 7465 2074 6f20 302e 3638 - update to 0.68 0000130: 0a20 2a20 4669 7820 6272 6561 6b61 6765 . * Fix breakage 0000140: 2069 6e74 726f 6475 6365 6420 6279 2030 introduced by 0 0000150: 2e36 3720 2841 6e64 7265 6173 204b c3b6 .67 (Andreas K.. 0000160: 6e69 6729 2e0a 202a 2042 6574 7465 7220 nig).. * Better but, when the submit request reaches legal review the encoding of the same text is latin1: osc rq show 96719 | xxd -s 0x60 -l 0xa0 0000060: 0a0a 0a4d 6573 7361 6765 3a0a 2d20 7265 ...Message:.- re 0000070: 6765 6e65 7261 7465 2077 6974 6820 6370 generate with cp 0000080: 616e 7370 6563 2074 6f20 6669 7820 7265 anspec to fix re 0000090: 7175 6972 6573 2f62 7569 6c64 7265 7175 quires/buildrequ 00000a0: 6972 6573 0a0a 2d20 7570 6461 7465 2074 ires..- update t 00000b0: 6f20 302e 3638 0a20 2a20 4669 7820 6272 o 0.68. * Fix br 00000c0: 6561 6b61 6765 2069 6e74 726f 6475 6365 eakage introduce 00000d0: 6420 6279 2030 2e36 3720 2841 6e64 7265 d by 0.67 (Andre 00000e0: 6173 204b f66e 6967 292e 0a20 2a20 4265 as K.nig).. * Be 00000f0: 7474 6572 2068 616e 646c 696e 6720 6f66 tter handling of Why is this possible? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=737050 https://bugzilla.novell.com/show_bug.cgi?id=737050#c1 Juergen Weigert <jw@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |coolo@suse.com --- Comment #1 from Juergen Weigert <jw@suse.com> 2011-12-15 12:35:00 UTC --- Coolo, cpanspec was used here, is this the cause? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=737050 https://bugzilla.novell.com/show_bug.cgi?id=737050#c2 Stephan Kulow <coolo@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|coolo@suse.com | --- Comment #2 from Stephan Kulow <coolo@suse.com> 2011-12-15 14:38:25 CET --- cpanspec calls osc vc as external tool, it doesn't touch .changes file directly -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=737050 https://bugzilla.novell.com/show_bug.cgi?id=737050#c3 Stephan Kulow <coolo@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |jw@suse.com --- Comment #3 from Stephan Kulow <coolo@suse.com> 2011-12-15 14:40:53 CET --- I wonder what you're looking at. osc api /request/96719 <description>- regenerate with cpanspec to fix requires/buildrequires - update to 0.68 * Fix breakage introduced by 0.67 (Andreas König). * Better handling of \r (Andreas König, Zefram) - fix license to be in spdx.org format< if I call osc rq show 96719, it's output in UTF-8 - I guess it depends on your terminal settings -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=737050 https://bugzilla.novell.com/show_bug.cgi?id=737050#c4 Juergen Weigert <jw@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|jw@suse.com | --- Comment #4 from Juergen Weigert <jw@suse.com> 2011-12-15 15:06:37 UTC --- yep. reproducer: LANG= LC_CTYPE= osc rq show 96719 Traceback (most recent call last): File "/usr/bin/osc", line 22, in <module> r = babysitter.run(osccli) File "/usr/lib64/python2.6/site-packages/osc/babysitter.py", line 53, in run return prg.main() File "/usr/lib64/python2.6/site-packages/osc/cmdln.py", line 310, in main return self.cmd(args) File "/usr/lib64/python2.6/site-packages/osc/cmdln.py", line 333, in cmd retval = self.onecmd(argv) File "/usr/lib64/python2.6/site-packages/osc/cmdln.py", line 449, in onecmd return self._dispatch_cmd(handler, argv) File "/usr/lib64/python2.6/site-packages/osc/cmdln.py", line 1179, in _dispatch_cmd return handler(argv[0], opts, *args) File "/usr/lib64/python2.6/site-packages/osc/commandline.py", line 2040, in do_request print r UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 228: ordinal not in range(128) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=737050 https://bugzilla.novell.com/show_bug.cgi?id=737050#c5 --- Comment #5 from Juergen Weigert <jw@suse.com> 2011-12-15 17:49:58 UTC --- # LANG=en_US.utf-8 LC_CTYPE= osc rq show 96719 works... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=737050 https://bugzilla.novell.com/show_bug.cgi?id=737050#c6 --- Comment #6 from Juergen Weigert <jw@suse.com> 2011-12-16 00:05:54 UTC --- (In reply to comment #3)
if I call osc rq show 96719, it's output in UTF-8 - I guess it depends on your terminal settings
Clearly inconsistent: osc rq show is vulnerable to locale settings, while osc cat is not. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=737050 https://bugzilla.novell.com/show_bug.cgi?id=737050#c7 Matthias Mailänder <matthias@mailaender.name> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |matthias@mailaender.name --- Comment #7 from Matthias Mailänder <matthias@mailaender.name> 2012-11-08 21:45:00 UTC --- When I try to view https://build.opensuse.org/package/view_file?expand=1&file=assaultcube-reloaded.spec&package=assaultcube-reloaded&project=games it says that the .spec file is a binary and only displays "You probably tried to display binary garbage, but got this beautiful message instead!" instead of the text file contents. This happened after OBS instance got updated to OBS 2.4 Alpha 1. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com