Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NTFS3G error on special characters (UTF-8 Problem)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
w00ter
n00b
n00b


Joined: 04 Mar 2005
Posts: 57
Location: Groningen, Netherlands

PostPosted: Sat Mar 14, 2009 1:07 pm    Post subject: NTFS3G error on special characters (UTF-8 Problem) Reply with quote

I am trying to copy a file (ext3 fs) with the filename "röyksopp.txt" to an ntfs3g partition (with Konqueror and in a terminal) and get the following error:
Invalid or incomplete multibyte or wide character
Ntfs3g's faq has an entry for this and their answer is:
Please make sure your terminal, terminal emulator or file manager is Unicode capable and set it to UTF-8 handling.

root: ~ #locale -a
C
en_GB
en_GB.utf8
nl_NL@euro
nl_NL.utf8@euro
POSIX

So I'd say i am pretty much set up for UTF-8 handling. What am i missing?
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Sat Mar 14, 2009 2:20 pm    Post subject: Reply with quote

Can you post that after mounting your partition :

Code:

# mount
Back to top
View user's profile Send private message
Gef
Apprentice
Apprentice


Joined: 17 May 2008
Posts: 180
Location: France

PostPosted: Sat Mar 14, 2009 2:20 pm    Post subject: Re: NTFS3G error on special characters (UTF-8 Problem) Reply with quote

w00ter wrote:
What am i missing?

An update to "STABLE Version 2009.1.1 (January 22, 2009)" (-2009.2.1, in portage), which brings the
Quote:

New: Built-in, transparent UTF-8 conversion support. This solves all the problems, described here, and even more with hidden and inaccessible filenames having national characters.

feature.

I use it daily, without any problem (and very weird utf8 caracters ;D).

http://www.ntfs-3g.org/releases.html
_________________
Laptop : Gentoo ~amd64
(remote) Server : Gentoo amd64
Back to top
View user's profile Send private message
w00ter
n00b
n00b


Joined: 04 Mar 2005
Posts: 57
Location: Groningen, Netherlands

PostPosted: Sat Mar 14, 2009 2:42 pm    Post subject: Reply with quote

I am already using the 2009.2.1 version.
Information on mount command:
Code:
/dev/sda7 on /Downloads type fuseblk (rw,noexec,nosuid,nodev,allow_other,blksize=4096)
Back to top
View user's profile Send private message
Gef
Apprentice
Apprentice


Joined: 17 May 2008
Posts: 180
Location: France

PostPosted: Sat Mar 14, 2009 2:48 pm    Post subject: Reply with quote

My bad.

Quote:

~ locale -a
C
en_US
en_US.utf8
fr_FR@euro
fr_FR.utf8
POSIX

~ echo $LC_ALL
fr_FR.UTF-8

Quote:
/dev/sdb1 on /media/KWEST640 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)

_________________
Laptop : Gentoo ~amd64
(remote) Server : Gentoo amd64
Back to top
View user's profile Send private message
irgu
Tux's lil' helper
Tux's lil' helper


Joined: 25 Apr 2003
Posts: 131

PostPosted: Sun Mar 15, 2009 3:06 pm    Post subject: Reply with quote

What's the output of "strace cp röyksopp.txt ntfs_directory"?
Back to top
View user's profile Send private message
w00ter
n00b
n00b


Joined: 04 Mar 2005
Posts: 57
Location: Groningen, Netherlands

PostPosted: Mon Mar 23, 2009 5:15 pm    Post subject: Reply with quote

The output of strace cp röyksopp.trace /Spellen is:
Code:
execve("/bin/cp", ["cp", "/home/wouter/r\366yksop.trace", "."], [/* 66 vars */]) = 0
brk(0)                                  = 0x805c000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=172118, ...}) = 0
mmap2(NULL, 172118, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7efe000
close(3)                                = 0
open("/lib/libacl.so.1", O_RDONLY)      = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000\27\0\0004\0\0\0\20"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=26144, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7efd000
mmap2(NULL, 29024, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7ef5000
mmap2(0xb7efb000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5) = 0xb7efb000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0pg\1\0004\0\0\0\244"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1274140, ...}) = 0
mmap2(NULL, 1283664, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7dbb000
mmap2(0xb7eef000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x133) = 0xb7eef000
mmap2(0xb7ef2000, 9808, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7ef2000
close(3)                                = 0
open("/lib/libattr.so.1", O_RDONLY)     = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240\f\0\0004\0\0\0H"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=13656, ...}) = 0
mmap2(NULL, 16516, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7db6000
mmap2(0xb7db9000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2) = 0xb7db9000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7db5000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7db56c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0xb7db9000, 4096, PROT_READ)   = 0
mprotect(0xb7eef000, 8192, PROT_READ)   = 0
mprotect(0xb7efb000, 4096, PROT_READ)   = 0
mprotect(0x805a000, 4096, PROT_READ)    = 0
mprotect(0xb7f44000, 4096, PROT_READ)   = 0
munmap(0xb7efe000, 172118)              = 0
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1297872, ...}) = 0
mmap2(NULL, 1297872, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7c78000
close(3)                                = 0
brk(0)                                  = 0x805c000
brk(0x807d000)                          = 0x807d000
geteuid32()                             = 0
stat64(".", {st_mode=S_IFDIR|0777, st_size=8192, ...}) = 0
stat64("/home/wouter/r\366yksop.trace", {st_mode=S_IFREG|0644, st_size=483, ...}) = 0
stat64("./r\366yksop.trace", 0xbf918340) = -1 EILSEQ (Invalid or incomplete multibyte or wide character)
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2570, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f28000
read(3, "# Locale name alias data base.\n# "..., 4096) = 2570
read(3, ""..., 4096)                    = 0
close(3)                                = 0
munmap(0xb7f28000, 4096)                = 0
open("/usr/share/locale/nl_NL@euro/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/nl@euro/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/nl_NL/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/nl/LC_MESSAGES/coreutils.mo", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=285401, ...}) = 0
mmap2(NULL, 285401, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7c32000
close(3)                                = 0
open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=26040, ...}) = 0
mmap2(NULL, 26040, PROT_READ, MAP_SHARED, 3, 0) = 0xb7f22000
close(3)                                = 0
write(2, "cp: "..., 4cp: )                  = 4
write(2, "kan stat niet toepassen op './r\\3"..., 47kan stat niet toepassen op './r\366yksop.trace') = 47
open("/usr/share/locale/nl_NL@euro/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/nl@euro/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/nl_NL/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/nl/LC_MESSAGES/libc.mo", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=132409, ...}) = 0
mmap2(NULL, 132409, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f01000
close(3)                                = 0
write(2, ": Ongeldig of onvolledig multibyt"..., 40: Ongeldig of onvolledig multibyte-teken) = 40
write(2, "\n"..., 1
)                    = 1
close(0)                                = 0
close(1)                                = 0
close(2)                                = 0
exit_group(1)                           = ?
Back to top
View user's profile Send private message
irgu
Tux's lil' helper
Tux's lil' helper


Joined: 25 Apr 2003
Posts: 131

PostPosted: Tue Mar 24, 2009 12:56 am    Post subject: Reply with quote

r\366yksop is indeed not UTF-8 encoded. Make sure LANG is in UTF-8 and rename the file in the bash shell: 'mv r<TAB> röyksop.trace' and then try cp.

Or use iconv to convert the filename: echo <ISO-8859-1 string>| iconv -f ISO-8859-1 -t UTF-8
Back to top
View user's profile Send private message
Gef
Apprentice
Apprentice


Joined: 17 May 2008
Posts: 180
Location: France

PostPosted: Tue Mar 24, 2009 12:59 am    Post subject: Reply with quote

Or use app-text/convmv
_________________
Laptop : Gentoo ~amd64
(remote) Server : Gentoo amd64
Back to top
View user's profile Send private message
irgu
Tux's lil' helper
Tux's lil' helper


Joined: 25 Apr 2003
Posts: 131

PostPosted: Wed Mar 25, 2009 12:38 am    Post subject: Reply with quote

Gef wrote:
Or use app-text/convmv

That's actually better :-)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum