I18N volume labels
leon breedt
bitserf at gmail.com
Tue Jan 4 04:03:49 PST 2005
Hi again,
It seems Joliet stores the volume label in something called a
Supplementary Volume Descriptor (located some where after the Primary
Volume Descriptor).
This has largely the same format as a PVD, and the volume_id field of
this descriptor contains the UTF-16 (Big Endian) encoded volume ID.
I've created a patch that uses this instead if present, and it works
for me. As in, the names in lshal and hal-device-manager are correctly
displayed. However, Nautilus still seems to have some problems with
the Korean name (see attached image snippet).
The patch also possibly has some problems:
- I ignore the SVD "Escape Sequences" field, no idea what it means
- I ignore the SVD "Volume Flags" field
- I'm not entirely sure that a descriptor identified as an SVD is used
only by Joliet, although that is what disktype
(http://disktype.sf.net) assumes
Technical information on Joliet is rather scarce, though libcdio and
disktype were useful for gleaning facts used in the patch, as well as
this page:
http://bmrc.berkeley.edu/people/chaffee/jolspec.html
Leon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-0.4.2-joliet-i18n.patch
Type: application/octet-stream
Size: 2216 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20050105/f2f2189b/hal-0.4.2-joliet-i18n.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-i18n.png
Type: image/png
Size: 23880 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20050105/f2f2189b/hal-i18n.png
-------------- next part --------------
_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal
More information about the Hal
mailing list