Package: xdg-utils
Version: 1.1.0~rc1-1
Severity: normal

I am using awesome as a window manager and am not using any desktop
environment.  My /bin/sh points to dash.

Under this condition, I noticed that xdg-open failed to open a local
file if (a) path to a local file contains space, and (b) the path is
given to xdg-open as encoded URL (e.g,
file:///tmp/before\x20after/example.txt).

xdg-open, then, tries to decode '\x20' back to ' ' by executing
(built-in) printf command in open_generic().  However, this does not
work in dash.  Unlike bash's built-in, dash's printf apparently lacks
the ability to translate \xNN to character.  This leads to file not
found error.

I temprarily workarounded this problem by changing shebang from
/bin/sh to /bin/bash.  Another workaround is to use coreutils' printf
instead of shells' built-in.  Neither seems ideal, but they work for
me.

Regards,


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

xdg-utils depends on no packages.

Versions of packages xdg-utils recommends:
ii  libfile-mimeinfo-perl         0.15-1     Perl module to determine file type
ii  x11-utils                     7.6+1      X11 utilities
ii  x11-xserver-utils             7.6+1      X server utilities

Versions of packages xdg-utils suggests:
pn  gvfs-bin                      <none>     (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to