LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Strange filename - rtorrent unable to create a file (http://www.linuxquestions.org/questions/linux-software-2/strange-filename-rtorrent-unable-to-create-a-file-873321/)

igadoter 04-06-2011 08:24 AM

Strange filename - rtorrent unable to create a file
 
Hi,
you know how strange can be filenames in torrents - if you don't know look at thepiratebay.

After opening a torrent the rtorrent program was unable to activate downloading because of missing file. At first I thought it is a bug in the torrent file. But then I realized that it may be a problem with creating a file due to its strange name - indeed when I created manually the needed files the torrent started.

The question is: the restriction for a filename comes from the rtorrent itself or it is due to the bash limits? Or rather the system limits - a low-level system call procedure is able to create only files with names which meet some requirements? So, it causes an exception and it seems unhandled by rtorrent? How to figure out this? How I can find why rtorrent is unable to create a file?

Aralhach 11-16-2014 12:00 AM

Later is better than never
 
I just ran into the same problem as you, with a Raspberry Pi downloading torrents to an external USB thumbdrive (formatted with FAT). The problem of the "missing file" is because of strange characters in the filename (like or or other non-English characters).

The solution for me was to mount the USB drive correctly, something like:
Code:

mount -o codepage=850,iocharset=iso8859-1,utf8 /dev/sdb1 /mnt
You can read more about this at: http://www.nslu2-linux.org/wiki/HowT...FATFileSystems

If you're using an NTFS or other non-native filesystem, the codepage will also be an issue, so the solution should be very similar to what I have posted here.

I'm aware that my post is like 3 years late, but I just ran into this problem, and this was one of the first results, so I'll post the solution I found here for any other person who may run into the same problem.


All times are GMT -5. The time now is 04:54 AM.