[Pkg-bluetooth-maintainers] Bug#514841: gnome-bluetooth: gnome-obex-send doesn't send a file correctly if the filename contains non-ASCII characters.

Morita Sho morita-pub-en-debian at inz.sakura.ne.jp
Wed Feb 11 10:46:54 UTC 2009


Package: gnome-bluetooth
Version: 0.9.1-1
Severity: normal

Hi,

When I sent a file to my mobile phone using gnome-obex-send, I noticed that
every non-ASCII characters in the filename will be broken.

gnome-obex-send works fine if the filename contains only ASCII characters.

It seems that gnome-obex-send doesn't send a file correctly if
the filename contains non-ASCII characters.


I investigated to see what happened with the filename using hcidump.

When I sent a file that named "β.txt", (Note: 'β' is a character U+03B2 in Unicode)

  $ gnome-obex-send "β.txt"

Then hcidump outputs the following.

< ACL data: handle 38 flags 0x02 dlen 36
    L2CAP(d): cid 0x0040 len 32 [psm 3]
      RFCOMM(d): UIH: cr 1 dlci 2 pf 0 ilen 28 fcs 0x9a 
        OBEX: Put cmd(f): len 28
        Name (0x01) = Unicode length 14
        0000: 00 ce 00 b2 00 2e 00 74  00 78 00 74 00 00        .......t.x.t..

The filename seems to be sent as an Unicode string.
I think the problem is the character 'β' was incorrectly translated to "00 ce 00 b2".
The character 'β' must be represented as "03 B2" in Unicode.


Regards,

-- System Information:
Debian Release: 5.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gnome-bluetooth depends on:
ii  gconf2                 2.22.0-1          GNOME configuration database syste
ii  libart-2.0-2           2.3.20-2          Library of functions for 2D graphi
ii  libatk1.0-0            1.22.0-1          The ATK accessibility toolkit
ii  libbluetooth2          3.36-1            Library to use the BlueZ Linux Blu
ii  libbonobo2-0           2.22.0-1          Bonobo CORBA interfaces library
ii  libbonoboui2-0         2.22.0-1          The Bonobo UI library
ii  libbtctl4              0.10.0-1          GObject Bluetooth library
ii  libc6                  2.7-18            GNU C Library: Shared libraries
ii  libcairo2              1.6.4-7           The Cairo 2D vector graphics libra
ii  libfontconfig1         2.6.0-3           generic font configuration library
ii  libfreetype6           2.3.7-2           FreeType 2 font engine, shared lib
ii  libgconf2-4            2.22.0-1          GNOME configuration database syste
ii  libglade2-0            1:2.6.3-1         library to load .glade files at ru
ii  libglib2.0-0           2.16.6-1          The GLib library of C routines
ii  libgnome-keyring0      2.22.3-2          GNOME keyring services library
ii  libgnome2-0            2.20.1.1-2        The GNOME 2 library - runtime file
ii  libgnomebt0            0.9.1-1           GNOME Bluetooth library
ii  libgnomecanvas2-0      2.20.1.1-1        A powerful object-oriented display
ii  libgnomeui-0           2.20.1.1-2        The GNOME 2 libraries (User Interf
ii  libgnomevfs2-0         1:2.22.0-5        GNOME Virtual File System (runtime
ii  libgtk2.0-0            2.12.11-4         The GTK+ graphical user interface 
ii  libice6                2:1.0.4-1         X11 Inter-Client Exchange library
ii  liborbit2              1:2.14.16-0.1     libraries for ORBit2 - a CORBA ORB
ii  libpango1.0-0          1.20.5-3          Layout and rendering of internatio
ii  libpng12-0             1.2.27-2          PNG library - runtime
ii  libpopt0               1.14-4            lib for parsing cmdline parameters
ii  libsm6                 2:1.0.3-2         X11 Session Management library
ii  libx11-6               2:1.1.5-2         X11 client-side library
ii  libxcursor1            1:1.1.9-1         X cursor management library
ii  libxext6               2:1.0.4-1         X11 miscellaneous extension librar
ii  libxfixes3             1:4.0.3-2         X11 miscellaneous 'fixes' extensio
ii  libxi6                 2:1.1.4-1         X11 Input extension library
ii  libxinerama1           2:1.0.3-2         X11 Xinerama extension library
ii  libxml2                2.6.32.dfsg-5     GNOME XML library
ii  libxrandr2             2:1.2.3-1         X11 RandR extension library
ii  libxrender1            1:0.9.4-2         X Rendering Extension client libra
ii  zlib1g                 1:1.2.3.3.dfsg-12 compression library - runtime

gnome-bluetooth recommends no packages.

Versions of packages gnome-bluetooth suggests:
pn  nautilus-sendto               <none>     (no description available)

-- no debconf information





More information about the Pkg-bluetooth-maintainers mailing list