This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Error when copying some files to USB-storage

Tags: None
(comma "," separated)
winterheart
Registered Member
Posts
2
Karma
0
Hello!
Amarok is great media player, many thanks for creators :).
But when I try copy to my USB-player tracks with contaned non-latin symbols in tags, I got only files with underline instead these symbols.
There my system info:
Code: Select all
Gentoo Linux  2.6.16-gentoo-r3
gcc version 3.4.5 (Gentoo 3.4.5-r1, ssp-3.4.5-1.0, pie-8.7.9)
amarok-1.4.0a

line from /etc/fstab:
Code: Select all
/dev/sda1       /mnt/mpio       vfat    noauto,utf8,users       0 0


Locale is ru_RU.UTF8

In addition, I'll attach screenshot.

Thanks!
User avatar
Jarsto
Registered Member
Posts
42
Karma
0
OS
As I understand it this feature is meant to keep Amarok from putting characters into vfat filesystems vfat can't handle. I guess it may be back-firing in this instance. Or maybe the version of vfat used on your USB-player doesn't support Russian characters in filenames. What happens when you try to copy a file with Russian characters in the filename to it by hand?


Jarsto

"There are three rules for writing a novel. Unfortunately, no one knows what they are."
W. Somerset Maugham
winterheart
Registered Member
Posts
2
Karma
0
USB-storage is standard vfat-disk, configured properly, and russian characteers diplayed correct. Also when I attach USB-player and connect to amarok, non-latin characters dysplayed properly.

It's bug of amarok, unfortunally, and this appear only copying/renaming/handling directories and filenames to media device.
Jurik_Phys
Registered Member
Posts
1
Karma
0
winterheart wrote:But when I try copy to my USB-player tracks with contaned non-latin symbols in tags, I got only files with underline instead these symbols.


There are errors in the file "amarok-1.4.x/amarok/src/mediadevice/generic/genericmediadevice.cpp".
The function QFile::encodeName() don't work properly.
For examle: QCString dirPath = QFile::encodeName( fullPath ); File name and dir name with russian symbols view as /englishSymbol/??????/????.ogg

Then this string using, for example,
const KURL url( dirPath );
KIO::NetAccess::mkdir( url, m_parent );
but mkdir don't create directory with name "/english/??????/".

I used QString instead QCString and russian symbols print properly.

In addition, I attached genericmediadevice.cpp with my correction(create, delete, rename, copy files to device).
/ I don't know how create patсh for the time being /

P.S.
I'm sorry for my poor English

Last edited by Jurik_Phys on Thu Oct 04, 2007 6:30 pm, edited 1 time in total.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kde-naveen, Sogou [Bot]