>From the look of it that's not utf8, but I agree you should not get a
traceback there.

It's a bit like what was done in
<https://code.launchpad.net/~jameinel/bzr/2.1.0b4-win32-unsupported_encoding_commit_message/+merge/14603>
but apparently that's not enough.

** Visibility changed to: Public

** Description changed:

  Binary package hint: bzr
  
  I tried to copy-paste ℃ into the commit message (in the commandline). I
  deleted something in the string because I got an error.
  
  The editor might have left something that's not a valid Unicode string.
  
  bzr should catch Unicode conversion exceptions and fail gracefully.
  
  ProblemType: Crash
  DistroRelease: Ubuntu 11.04
  Package: bzr 2.3.1-1ubuntu1
  ProcVersionSignature: Ubuntu 2.6.38-7.39-generic 2.6.38
  Uname: Linux 2.6.38-7-generic i686
  Architecture: i386
  Date: Wed Mar 30 15:26:06 2011
  EcryptfsInUse: Yes
  ExecutablePath: /usr/bin/bzr
  InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha i386 (20110326)
  InterpreterPath: /usr/bin/python2.7
  ProcCmdline: /usr/bin/python /usr/bin/bzr commit -m Use\ Unicode\ �degree\ 
characters\ for\ Celsius/Farenheit
  ProcEnviron:
   SHELL=/bin/bash
   LANG=C
   LANGUAGE=ro_RO:en
  PythonArgs: ['/usr/bin/bzr', 'commit', '-m', 'Use Unicode \xcbdegree 
characters for Celsius/Farenheit']
  SourcePackage: bzr
  Title: bzr crashed with BzrError in get_unicode_argv(): Parameter ''Use 
Unicode \xcbdegree characters for Celsius/Farenheit'' is unsupported by the 
current encoding.
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
+ 
+ Traceback (most recent call last):
+   File "/usr/bin/bzr", line 139, in <module>
+     exit_val = bzrlib.commands.main()
+   File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1205, in 
main
+     argv = _specified_or_unicode_argv(argv)
+   File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1178, in 
_specified_or_unicode_argv
+     return osutils.get_unicode_argv()
+   File "/usr/lib/python2.7/dist-packages/bzrlib/osutils.py", line 100, in 
get_unicode_argv
+     "encoding." % a))
+ BzrError: Parameter ''Use Unicode \xcbdegree characters for 
Celsius/Farenheit'' is unsupported by the current encoding.

** Also affects: bzr
   Importance: Undecided
       Status: New

** Tags added: easy error-reporting traceback unicode

** Changed in: bzr
       Status: New => Confirmed

** Changed in: bzr
   Importance: Undecided => Low

** Changed in: bzr (Ubuntu)
       Status: New => Confirmed

** Changed in: bzr (Ubuntu)
   Importance: Undecided => Low

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/745712

Title:
  bzr crashed with BzrError in get_unicode_argv(): Parameter ''Use
  Unicode \xcbdegree characters for Celsius/Farenheit'' is unsupported
  by the current encoding.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to