Bug 128315

Summary: sysutils/fusefs-ntfs does not work with ru_RU.KOI8-R
Product: Ports & Packages Reporter: Oleg Gawriloff <barzog>
Component: Individual Port(s)Assignee: Alejandro Pulver <alepulver>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Oleg Gawriloff 2008-10-23 13:00:05 UTC
We have NTFS disk with some russian filenames. Locale in FreeBSD is KOI8-R. When mounting with:
/dev/da14s1             /usr/jails/torrentjl/mnt/TransferB      ntfs-3g ro,noatime,noauto,uid=65534,gid=65533,noexec,locale=ru_RU.KOI8-R       
In log files:
Oct 23 14:48:54 stork ntfs-3g[37698]: Version 1.2531 external FUSE 27
Oct 23 14:48:54 stork ntfs-3g[37698]: Mounted /dev/da14s1 (Read-Only, label "", NTFS 3.1)
Oct 23 14:48:54 stork ntfs-3g[37698]: Cmdline options: ro,noatime,noauto,uid=65534,gid=65533,noexec,locale=ru_RU.KOI8-R
Oct 23 14:48:54 stork ntfs-3g[37698]: Mount options: ro,noexec,silent,allow_other,nonempty,default_permissions,noatime,fsname=/dev/da14s1

And then doing ls /usr/jails/torrentjl/mnt/TransferB there is no russian filenames. In error log I see following:
Oct 23 14:49:07 stork ntfs-3g[37698]: Skipping unrepresentable filename (inode 793): Illegal byte sequence
for each of russian filenames.

When mounting with:
/dev/da14s1             /usr/jails/torrentjl/mnt/TransferB      ntfs-3g ro,noati
me,noauto,uid=65534,gid=65533,noexec,locale=ru_RU.UTF-8 0       0
Oct 23 14:52:26 stork ntfs-3g[40443]: Version 1.2531 external FUSE 27
Oct 23 14:52:26 stork ntfs-3g[40443]: Mounted /dev/da14s1 (Read-Only, label "", NTFS 3.1)
Oct 23 14:52:26 stork ntfs-3g[40443]: Cmdline options: ro,noatime,noauto,uid=65534,gid=65533,noexec,locale=ru_RU.UTF-8
Oct 23 14:52:26 stork ntfs-3g[40443]: Mount options: ro,noexec,silent,allow_other,nonempty,default_permissions,noatime,fsname=/dev/da14s1
There is no errors in log, but russian filenames are in UTF8 (which is really inconvinient).

When mounting using FreeBSD NTFS driver with:
/dev/da14s1            /usr/jails/torrentjl/mnt/TransferB      ntfs    ro,noati
me,noauto,-u=65534,-g=65533,noexec,-C=KOI8-R    0       0
All russian filenames are in KOI8-R which is good, but reading speed is 3.8Mbytes/sec (in ntfs-3g reading speed is 32 Mbytes/sec).

PS: In /etc/profile we have:
export MM_CHARSET="KOI8-R"
export LANG="ru_RU.KOI8-R"
export LC_TIME=POSIX

How-To-Repeat: Mount NTFS partition with russian filenames with locale=ru_RU.KOI8-R
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2008-10-23 20:46:37 UTC
Responsible Changed
From-To: freebsd-bugs->alepulver

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Alejandro Pulver freebsd_committer freebsd_triage 2009-02-05 21:55:54 UTC
Hello.

I've just updated fusefs-ntfs to the latest version (2009.1.1), and
they have automatic character conversion to UTF-8 now.

See:
http://www.ntfs-3g.org/support.html#locale3
http://www.ntfs-3g.org/releases.html

Please try and tell me if it works.

Regards,
Ale
Comment 3 Alejandro Pulver freebsd_committer freebsd_triage 2009-02-05 21:56:36 UTC
State Changed
From-To: open->feedback

Port updated, wait for sender to test it.
Comment 4 Alejandro Pulver freebsd_committer freebsd_triage 2009-02-08 23:29:41 UTC
State Changed
From-To: feedback->patched

The port was updated, and the developers say the problem is fixed.
Comment 5 Alejandro Pulver freebsd_committer freebsd_triage 2009-03-13 03:29:01 UTC
State Changed
From-To: patched->closed

No feedback for some time, and upstream claims it's fixed.