Tor Harald Thorland linux@mis.no wrote:
Hi,
I have tried to copy some files with some norwegian characters in the file name. FC 2 is not happy with them and keeps complaining that it cannot write them.. What can I do to make FC2 accept norwegian characters in filenames?
Don't know if I can help, but the people who can probably need to know more:
Are you doing this from the command line or a filemanager?
Do you have the right permissions? If creating the new file, do you have write permission for the directory you're copying to? Does the destination file already exist read-only? (check by ls -lh) Do you have enough free space (df -h)?
What does $echo $LANG say? (Given FC2, hopefully (something).UTF-8 )
What file systems are you copying to and from (at the very least the output of mount would be useful)?
What are the names of the files in question? I managed:
$ touch Skarphéðinn $ cp Skarphéðinn /tmp $ ls /tmp/Skarphéðinn /tmp/Skarphéðinn
Sorry about the late answer, but i'm working at sea..
man, 25.10.2004 kl. 19.23 skrev Ian Malone:
Tor Harald Thorland linux@mis.no wrote:
Hi,
I have tried to copy some files with some norwegian characters in the file name. FC 2 is not happy with them and keeps complaining that it cannot write them.. What can I do to make FC2 accept norwegian characters in filenames?
Don't know if I can help, but the people who can probably need to know more:
The kde file manager says the following: Could not write to /mnt/.....
Are you doing this from the command line or a filemanager?
I have tried both from the filemanager in KDE and from midnight commander..
Do you have the right permissions? If creating the new file, do you have write permission for the directory you're copying to? Does the destination file already exist read-only? (check by ls -lh) Do you have enough free space (df -h)?
It is a flash drive.. I have enough space, the right permissions and so on.. it is copying all the other files, except for the ones with norwegian characters..
What does $echo $LANG say? (Given FC2, hopefully (something).UTF-8 )
[tortho@dsl-65-199 Jobb]$ echo $LANG no_NO.UTF-8 [tortho@dsl-65-199 Jobb]$
What file systems are you copying to and from (at the very least the output of mount would be useful)?
[tortho@dsl-65-199 Jobb]$ mount /dev/hda3 on / type ext3 (rw) none on /proc type proc (rw) none on /sys type sysfs (rw) none on /dev/pts type devpts (rw,gid=5,mode=620) usbdevfs on /proc/bus/usb type usbdevfs (rw) /dev/hda2 on /boot type ext3 (rw) none on /dev/shm type tmpfs (rw) /dev/sda1 on /mnt/flash2 type vfat (rw,noexec,nosuid,nodev,user=tortho) [tortho@dsl-65-199 Jobb]$
The one i'm trying to write to is flash2..
What are the names of the files in question? I managed:
One of the files is called nødbrannpumpe.doc
$ touch Skarphéðinn $ cp Skarphéðinn /tmp $ ls /tmp/Skarphéðinn /tmp/Skarphéðinn
-- imalone
Thnx THT
On Sun, Oct 31, 2004 at 12:02:31PM +0100, Tor Harald Thorland wrote:
man, 25.10.2004 kl. 19.23 skrev Ian Malone:
Tor Harald Thorland linux@mis.no wrote:
Hi,
I have tried to copy some files with some norwegian characters in the file name.
....
Could not write to /mnt/.....
....
It is a flash drive.. I have enough space, the right permissions and so on.. it is copying all the other files, except for the ones with norwegian characters..
One of the files is called nødbrannpumpe.doc
nødbrannpumpe.doc 00000000: 6e c3 b8 64 62 72 61 6e 6e 70 75 6d 70 65 2e 64 | n..dbrannpumpe.d
$ touch 'nødbrannpumpe.doc' touch: setting times of `nødbrannpumpe.doc': No such file or directory
The file name is not a legal file name for this type of file system.
$ df . Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 46786 6 46780 1% /mnt/flash1 $ mount .... /dev/sda1 on /mnt/flash1 type vfat (rw,nosuid,nodev,user=bob) ....
If I run strace on touch 'nødbrannpumpe.doc I see the open() system call fail. open("nødbrannpumpe.doc", O_WRONLY|O_NONBLOCK|O_CREAT|O_NOCTTY|O_LARGEFILE, 0666) = -1 EINVAL (Invalid argument)
A bit of digging may still be required but it looks as if the two bytes used for the multi byte character "ø" are not in the legal character set:
(space) ! # $ % & ' ( ) + , - . 0-9 ; = @ A-Z [ ] ^ _ ` a-z { } ~
Hi,
I have now, 2 min ago changed the name on it, and succsessfully moved it to the flash disk.
Thnx. Tor Harald Thorland
Nifty Hat Mitch wrote:
On Sun, Oct 31, 2004 at 12:02:31PM +0100, Tor Harald Thorland wrote:
man, 25.10.2004 kl. 19.23 skrev Ian Malone:
Tor Harald Thorland linux@mis.no wrote:
Hi,
I have tried to copy some files with some norwegian characters in the file name.
....
Could not write to /mnt/.....
....
It is a flash drive.. I have enough space, the right permissions and so on.. it is copying all the other files, except for the ones with norwegian characters..
One of the files is called nødbrannpumpe.doc
nødbrannpumpe.doc 00000000: 6e c3 b8 64 62 72 61 6e 6e 70 75 6d 70 65 2e 64 | n..dbrannpumpe.d
$ touch 'nødbrannpumpe.doc' touch: setting times of `nødbrannpumpe.doc': No such file or directory
The file name is not a legal file name for this type of file system.
$ df . Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 46786 6 46780 1% /mnt/flash1 $ mount .... /dev/sda1 on /mnt/flash1 type vfat (rw,nosuid,nodev,user=bob) ....
If I run strace on touch 'nødbrannpumpe.doc I see the open() system call fail. open("nødbrannpumpe.doc", O_WRONLY|O_NONBLOCK|O_CREAT|O_NOCTTY|O_LARGEFILE, 0666) = -1 EINVAL (Invalid argument)
A bit of digging may still be required but it looks as if the two bytes used for the multi byte character "ø" are not in the legal character set:
(space) ! # $ % & ' ( ) + , - . 0-9 ; = @ A-Z [ ] ^ _ ` a-z { } ~