[Pkg-bluetooth-maintainers] Bug#514841: Bug#514841: gnome-bluetooth: gnome-obex-send doesn't send a file correctly if the filename contains non-ASCII characters.
Filippo Giunchedi
filippo at debian.org
Wed Feb 11 15:06:25 UTC 2009
On Wed, Feb 11, 2009 at 07:46:54PM +0900, Morita Sho wrote:
> 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.
thanks for the bug, the investigation and the patch!
out of curiosity: does this work sending with bluetooth-applet (package
bluez-gnome) ?
filippo
--
Filippo Giunchedi - http://esaurito.net - 0x6B79D401
I worked myself up from nothing to a state of extreme poverty.
-- Groucho Marx
More information about the Pkg-bluetooth-maintainers
mailing list