Public bug reported:

Binary package hint: system-config-printer

I can't connect to a windows (samba) printer queue whose name contains
chinese characters.  My printer is called '5F網資室'.

If I give the full name and path to the queue using the unicode
charactes, system-config-printer dumps this to the console, and then
just stalls forever:

/usr/lib/python2.6/urllib.py:1223: UnicodeWarning: Unicode equal comparison 
failed to convert both arguments to Unicode - interpreting them as being unequal
  res = map(safe_map.__getitem__, s)
Traceback (most recent call last):
  File "/usr/share/system-config-printer/system-config-printer.py", line 4185, 
in on_btnNPForward_clicked
    self.nextNPTab()
  File "/usr/share/system-config-printer/system-config-printer.py", line 4203, 
in nextNPTab
    uri = SMBURI (uri=uri[6:]).sanitize_uri ()
  File "/usr/share/system-config-printer/smburi.py", line 69, in sanitize_uri
    return self._construct (group, host, share)
  File "/usr/share/system-config-printer/smburi.py", line 61, in _construct
    uri += "/" + _urlquote (share)
  File "/usr/share/system-config-printer/smburi.py", line 26, in _urlquote
    q = urllib.quote (x)
  File "/usr/lib/python2.6/urllib.py", line 1223, in quote
    res = map(safe_map.__getitem__, s)
KeyError: u'\xe7'

If I escape the name (i.e. "5F%E7%B6%B2%E8%B3%87%E5%AE%A4"), the error
is the same, but the UnicodeWarning is not generated first.

ProblemType: Bug
Architecture: amd64
CupsErrorLog:
 W [08/Dec/2009:15:20:02 +0800] [CGI] Unhandled message: 
interface=org.freedesktop.DBus.Introspectable, path=/, member=Introspect
 E [08/Dec/2009:15:20:17 +0800] [cups-driverd] Bad driver information file 
"/usr/share/cups/drv/sample.drv"!
 W [08/Dec/2009:15:27:09 +0800] [CGI] Unhandled message: 
interface=org.freedesktop.DBus.Introspectable, path=/, member=Introspect
 E [08/Dec/2009:15:27:25 +0800] [cups-driverd] Bad driver information file 
"/usr/share/cups/drv/sample.drv"!
Date: Tue Dec  8 15:32:59 2009
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
Lpstat: device for HP-Color-LaserJet-1600: socket://172.30.101.245:9100
MachineType: ASUSTeK Computer Inc. A8Fm
Package: system-config-printer-common 1.1.12+git20090826-0ubuntu8
PackageArchitecture: all
Papersize: letter
PpdFiles: HP-Color-LaserJet-1600: HP Color LaserJet 1600 Foomatic/foo2hp 
(recommended)
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.31-16-generic 
root=UUID=19e942df-bcab-41c0-9b76-eb0aca07f7c7 ro splash nomodeset quiet splash
ProcEnviron:
 LANGUAGE=en_GB.UTF-8
 PATH=(custom, user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-16.52-generic
SourcePackage: system-config-printer
Uname: Linux 2.6.31-16-generic x86_64
dmi.bios.date: 04/08/2008
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: A8FmAS.212
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: A8Fm
dmi.board.vendor: ASUSTeK Computer Inc.
dmi.board.version: 1.0
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTeK Computer Inc.
dmi.modalias: 
dmi:bvnAmericanMegatrendsInc.:bvrA8FmAS.212:bd04/08/2008:svnASUSTeKComputerInc.:pnA8Fm:pvr1.0:rvnASUSTeKComputerInc.:rnA8Fm:rvr1.0:cvnASUSTeKComputerInc.:ct10:cvr:
dmi.product.name: A8Fm
dmi.product.version: 1.0
dmi.sys.vendor: ASUSTeK Computer Inc.

** Affects: system-config-printer (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug

-- 
unable to connect to windows printers with non-ascii names
https://bugs.launchpad.net/bugs/493936
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

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

Reply via email to