[Bug 468343] Re: blkid does not read non-ASCII characters from NTFS labels
Ken Sharp
468343 at bugs.launchpad.net
Sun Jan 14 11:38:12 UTC 2024
It's been 14 years, is this still an issue?
** Changed in: util-linux (Ubuntu)
Status: Triaged => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/468343
Title:
blkid does not read non-ASCII characters from NTFS labels
Status in util-linux package in Ubuntu:
Incomplete
Bug description:
Binary package hint: hal
When plugging in an external harddrive with an NTFS filesystem with a
label set to contain UTF-8 characters, the mounted path as well as the
label displayed in nautilus are incorrect. The label reported by
ntfs-3g are always correct. The labels are set with the command
ntfslabel.
Some different examples follows:
NTFS label # HAL label discovered # Label used in Nautilus / Filesystem path (/media/...)
=========================
dong # dong # dong
東西 # 55 # ??
Å # % # 4A12287F1228725D
dong西 # dong% # dong?
dongÅ # dong% # dong
dong西xi # dong%xi # dong?xi
dongÅxi # dong%xi # dong
Examining the above table shows that depending on what Unicode character the file system path and label shown in nautilus differ. The behaviour of hal is also a bit odd. When a chinese character is used together with a ASCII character, hal with read it as '%', while nautilus and the path as '?'. When the swedish character 'Å' is used together with ASCII characters, hal with do the same as with chinese characters, but nautilus and the path will simply truncate everything including and after the swedish character.
If only chinese characters are used, hal with read them as the number
'5'. '東西' is translated into '55'. ‘東西南北’ translates to '5555'. When
only swedish characters are used, hal will read them in as '%', while
the path as well as the label presented in nautilus will be something
looking like a large random identifier number.
In Ubuntu 9.04, these issues did not exist. A NTFS partition with
label 東西 would automatically mount into /media/東西/, and would be
presented correctly in nautilus. The issue occurred immediately after
upgrading to Ubuntu 9.10.
Setting the label is done with the command ntfslabel. Reading hal
values is done with the command hal-devices.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/468343/+subscriptions
More information about the foundations-bugs
mailing list