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

[BUG] Creating torrents with special characters issue

Tags: None
(comma "," separated)
Ereza
Registered Member
Posts
2
Karma
0
Version: KTorrent 2.0
Distribution: Kubuntu 6.06 (Dapper) i386

When creating a new torrent from a file with special characters (such as those with accents like à, ó, etc.), the file name assigned internally is incorrect.

How to reproduce it:

1. Create a file name "Pròvá.zip".
2. In KTorrent, go to File -> New
3. Load Pròvá.zip, add any tracker, select Create and save the torrent with any name.
4. Go to "Uploads" tab.
5. You are uploading a file named "Pròvá.z"!! Additionally, an empty file named "Pròvá.z" is created on the directory where you had "Pròvá.zip".

It removes one character from the file per special character, so, if the file is only "Pròva.zip" (one special character), the resulting file is "Pròva.zi" (one character less than the original name).

This bug really annoys me because I create a lot of torrents with Catalan names, which often include special characters, and I have to create them in other applications, and then add them to KTorrent.
George
Moderator
Posts
5421
Karma
1

Sun Aug 13, 2006 8:05 am
I will take a look at it, probably just using the wrong text encoding somewhere.
George
Moderator
Posts
5421
Karma
1

Sun Aug 13, 2006 8:34 am
OK, it is fixed. It turns out we were using the length of a string before we converted it to UTF-8. We should have used the length of the UTF-8 string.
Ereza
Registered Member
Posts
2
Karma
0

Sun Aug 13, 2006 11:23 pm
Thanks a lot! ;)

I'll be waiting for the next version :P (I'm new to this and I prefer using the Ubuntu packages than compiling from the SVN...)
imported4-max63
Registered Member
Posts
6
Karma
0

Sat Aug 19, 2006 11:56 am
I discovered the same thing today, just renamed the 2 files to normal characters. Nice that it has been fixed already.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft