File naming on Russian and limitation on length of file names

Hi.
I post this message as a note for any users for whom English is not native language and in everyday practice they use native language on Linux systems.
Torrents and Linux
System:
OS: Archlinux x86_64
FS: Reiserfs
Locale: UTF-8
Client: rtorrent
torrent: http://torrents.ru/forum/viewtopic.php?t=1445641
Problem:
if one try to download this torrent with the help of rtorrent he see message
Hashing: Storage error: [Hash checker was unable to map chunk: Слишком длинное имя файла]
(this in on Russian, on English this is: 'File name too long')
Namely rtorrent couldn't handle this file
Белов А. В. - Микроконтроллеры AVR в радиолюбительской практике. Автоматика. Радиоэлектроника. Связь. Радио. Радиосвязь. Любительская радиосвязь.(2007)(336).djvu
(on Russian again).
The same message prints Transmission when one try to download this particular file.
Reason:
the name is exceeded the limitation on length of file name: 255 bytes. See, e.g.
$ echo 'Белов А. В. - Микроконтроллеры AVR в радиолюбительской практике. Автоматика. Радиоэлектроника. Связь. Радио. Радиосвязь. Любительская радиосвязь.(2007)(336).djvu' | wc -c
279
The problem doesn't depend on type of FS, it is in Linux kernel (Linux VFS). Reiserfs has limit in 4032 bytes on length of file name, Reiser4 has limit in 3976 bytes.
In this case NTFS is more advanced FS:
the limitation on length of file name is 255 UTF-16 code units (255*2 bytes).
Of course if one use 8-bit locale (e.g. cp1251, koi8-r and etc) then this problem for THIS file is not appeared:
echo 'Белов А. В. - Микроконтроллеры AVR в радиолюбительской практике. Автоматика. Радиоэлектроника. Связь. Радио. Радиосвязь. Любительская радиосвязь.(2007)(336).djvu' | iconv -f utf-8 -t koi8-r | wc -c
162
Nevertheless there is no guarantee that someone won't face with longer named files and in that situation the advantage of NTFS against any Linux FS is evident.
Info about FS limitation is taken from wikipedia.
I would glad to hear comments and suggestions about this particular problem (because I don't know how to download files of this torrent and store them on my Linux box).
P.S. As I understand FreeBSD has the same problem in this case.
P.P.S. I think that this problem could appear for example on Linux which serves as samba server (file server) when windows user want to place file with native alphabet letters in name on server.

This is a reported bug.

Similar Messages

  • Video files of type *.flv and *.f4v are considered Flash files, how play them (win7)

    video files of type *.flv and *.f4v are considered Flash files, how play them (win7) are files in file windows explorer?

    Not sure what you are saying; are these local or online files?
    Adobe does not longer provide Adobe Media Player to play local files; use a 3rd-party player like VLC Media Player.

  • Unable to see the logical path and file created in FILE tcode from AL11 and unable to upload the file to this path from front end

    Hi Experts,
    I have created the logical path and filename in FILE tcode.I am trying to upload the pdf file to application server by using this path.But
    I am getting message like "Unable to open the file".Even I cannot find the this path in AL11 tcode.Kindly anyone advise how to upload pdf file using
    custom path and file created from FILE tcode.
    Thanks & Regards,
    Anusha.

    Hi Anusha,
    Please give as below.
    I forget to say you cannot open the PDF in AL11 and for that you need some configuration, i think it can be done using content server,not sure completely please wait for some more suggestions.
    Regards,
    Pavan

  • Delete file from original location and when copied size of file increases.

    hi !
    I have 2 exe's both of 1.15MB which I want to move to another folder. The files are copied to the folder but the size of exe increases to around 350MB each. What can be the problem ?
    BufferedOutputStream bos=new BufferedOutputStream(new FileOutputStream(filename));
    int o=bis.read();
    do{bos.write(o);}while (o!=-1);
    boolean del=this.fpara.delete();
    System.out.println(del);          Also, the file is not deleted from the original location even though I have used the delete function. The last line produces null output.

    And do follow coding conventions
    {color:0000ff}http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html{color}
    If your original source is all jammed up like the snippet you posted, I'm not surprosed that you can't spot your mistakes.
    db
    Edited by: Darryl.Burke on Mar 9, 2008 12:40 AM

  • File sharing with PC and Diskaid: don't see files on iphone

    i downloaded FileApp and Diskaid,  But, the files don't transfer to my phone,Help!

    Those programs don't install to your phone.  They install to your computer so you can manage files on your iphone using your PC.
    Run the program, connect phone to PC using sync / dock cable and the phone should appear in the programs window on your PC so you can then move files on to and off of your phone.
    Be very careful that you don't delete or damage system files.  You will end up having to restore your phone when it stops working if you do.

  • Why can't I open ccitt g4 compression tiff files with ps6? and could open theses same files with ps3?

    Why can't I open CCITT G4 compression , TIFF format files with PS6?  I used to open these same files with PS3.   Can anyone help me out with this????

    This is what I get when trying to open ccitt G4 compression files. Tiff format.   Thanks for trying to answer my question and Problem.  I found a site where supposedly I can download a plug in into photoshop 6 that will open the files.  don't know if it will work but am gonna try it.

  • DLL is used to open MS Access Database file, worked outside TestStand, and could not open Database file in TestStand

    I created a dll using VC++ to open/read MS Access Database file. The dll works when running outside TestStand, When I used the dll in TestStand, the MS Acces Database file could not open.

    To Steve1 -
    Some questions that come to mind to help with solving this are:
    1) Are you using any ActiveX control components to assist you in accessing the database?
    2) Are you using ADO or DAO or ODBC to access your data?
    3) When you called the DLL successfully outside of TestStand, what was the OI written in?
    4) Since you own the source code, what is the error or exception that is thrown and on what ADO or DAO function call does it fail?
    Scott Richardson (NI)
    Scott Richardson
    National Instruments

  • File Dialog (Details View and Multiple Selections for View File Type)

    I would like to use the generic windows dialog box found in the toolbar under:
    File I/O/Advanced File Functions/File Dialog
    What I would like to do is have multiple selections for the file type, for example one menu selection is *.txt, another is *.rtf, another is *.csv, etc. Listing a single type is straightforward.
    Also does anyone know if there is a way to have the dialog open in the DETAILS view automatically?
    Thanks for any help!
    Carlton

    Hi,
    You can do it in following ways:
    1. Write in pattern input the string "*.txt; *.csv; *.rtf". This will show to the user only files with this extensions in the dialog.
    2. Another way is to create ring or menu where user could specify the extension. Depending on this extension you could wire the appropriate string to the pattern input of "File Dialog.vi"
    I have made an example.
    Good luck.
    Oleg Chutko.
    Attachments:
    fileopen.vi ‏42 KB

  • 3.0EA1: Trace files locked on open and not released on closing file

    I have discovered that SQL Developer locks trace files when they are opened (at least on Win XP SP 3), which it doesn't do with sql or pl/sql files. Also, even after closing the file in SQL Developer, the lock isn't released - you need to close SQL Developer to release the lock to be able to move/rename/delete the trace file.
    theFurryOne

    I was able to replicate this as well. I am forwarding it onto a developer to take a look at this. Thanks.
    Ashley
    SQL Developer Team

  • HOw to create a Batch file for java application and whats the use of this ?

    HI,
    How to create a Batch file for java application ?
    And whats the use of creating batch file ?
    Thanks in advance

    First of all, you're OT.
    Second, you can find this everywhere in the net.
    If you got a manifest declaring main class (an classpath if needed), just create a file named whatever.bat, within same directory of jar file, containing:
    javaw -jar ./WhateverTheNameOfYourJarIs.jar %*By the way, assuming a Windows OS, you can just double click the jar file (no batch is needed).
    Otherwise use:
    javaw -cp listOfJarsAndDirectoriesSeparedBySemiColon country/company/application/package/className %*Where 'country/company/application/package/' just stands for a package path using '/' as separator instead of '.'
    Don't specify the .class extension.
    Javaw only works on Windows (you asked for batch, I assumed .BAT, no .sh), in Linux please use java.exe (path may be needed, Windows doesn't need it 'cause java's executables are copied to system32 folder in order to be always available, see PATH environment variable if you don't know what I'm talking about) and use ':' as classpath (cp) separator.
    The '%***' tail is there in order to pass all parameters, it only works on Windows, refer to your shell docs for other OSs (something like $* may work).
    This way you have a command you can call to launch your code (instead of opening NetBeans just to see your app working). You could schedule tasks on it or just call it in any command prompt (hope you know what it is 'cause there have been people in this very same forum with no clue about it, if not just hold the 'Windows button' and press 'R', then type 'cmd' and run it).
    Finally add dukes and give 'hem away.
    Bye.

  • How to Zip server files(in a directory) and throwing back to client

    Can someone tell me how to zip all the files in a particular directory of my web application and throwing back to client to give option for save that zipped file.
    i have used the below used function to zip in servlet. But I cann't zip a particular directory of my application in server.
    Please help
    private void zipDir(String dir2zip, ZipOutputStream zos)
    try
    //create a new File object based on the directory we
    // have to zip File
    File fileDir2Zip = new File(dir2zip);
    System.out.println("is directory ..."+fileDir2Zip.isDirectory());
    //get a listing of the directory content
    String[] dirList = fileDir2Zip.list();
    for(int i = 0 ; i < dirList.length ; i++)
    System.out.println("Dir list ..."+dirList);
    byte[] readBuffer = new byte[2156];
    int bytesIn = 0;
    //loop through dirList, and zip the files
    for(int i=0; i<dirList.length; i++)
    File f = new File(fileDir2Zip, dirList[i]);
    if(f.isDirectory())
    //if the File object is a directory, call this
    //function again to add its content recursively
    String filePath = f.getPath();
    zipDir(filePath, zos);
    //loop again
    continue;
    //if we reached here, the File object f was not
    //a directory
    //create a FileInputStream on top of f
    FileInputStream fis = new FileInputStream(f);
    //create a new zip entry
    ZipEntry anEntry = new ZipEntry(f.getPath());
    //place the zip entry in the ZipOutputStream object
    zos.putNextEntry(anEntry);
    //now write the content of the file to the ZipOutputStream
    while((bytesIn = fis.read(readBuffer)) != -1)
    zos.write(readBuffer, 0, bytesIn);
    System.out.println("Last");
    //close the Stream
    fis.close();
    catch(Exception e)
    e.printStackTrace();

    Hi
    Whatever file exist in directory should execute with out any condition because they delete all files after exection of my process chain. They are using another process chain once a day for deletion of all files in that directory.
    So directory always contains fresh files.
    Here by using routine in infopackge i am unable to run all files one by one at a time.
    As of my knowledge  by using infopackage we can run only one file at a time.
    Here my question is , can we run more than one file in single run of infopackage?
    or can we have any function module to run the infopackage from externally? so that i can use function module in abap program? any ideas..
    Regards
    Raju

  • Fixed segments length in File using IDOCXmlToFlatConvertor module

    Hi,
    We need to create fixed length segments with 1063 characters each in flat file generated by the IDOCXmlToFlatConvertor module.
    At presents the length of the segments is variable. I believe the module refers the IDO file in R3 system and generate segment lengths accordingly.
    It there any approch by which we can create fixed length segments in the generated file.
    Regards
    Pravesh

    Hi Pravesh,
                         could you please kindly provide a sample input and output.
    If I have understood your requirements properly, we can achieve this in mapping itself,separate IDOCXmlToFlatConvertor module may not be required. In mapping we can count 1063 characters in each idoc segment and put it in target message. Then use receiver File content conversion to achieve this. Preferably java mapping will definately meet all requirements.
    In case you need further clarification please let me know your source and target output.
    regards
    Anupam

  • Camera file naming convension filename modification

    Hi,
    How do I change to photo's file naming convention?
    Each time I move my files to a centralised location, the filenames start from 001 again and now I have different photos with the same filename... STUPID!!!!

    Unfortunately it's not possible to change this as far as I know. Might be possible using 3rd party camera app.
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • File named "core",  :| ???

    Hello there,
    We have an enterprise application wich has been developed using AJAX, JSF, EJB's and others
    WebLogic technologies like WTC.
    When server is requested, directories with name _tld are created at domain directory, these directories
    contain jsf-impl.jar and richfaces-ui-3.2.0.SR1.jar files, also a file named "core" is created at domain directory, "core" file increases its size continuosly (800 Megabytes in 4 days).
    This is the unique application on the server, I don't have an idea why these directories and files are
    created and I think this not should be, what do you think about it?
    Any help will be apreciated
    HPUX Intanium 64
    WLS 10.0
    JSF 1.2
    EJB 3.0

    Hi Sunny,
    Thanks for the information. So is this a dump of whole used memory/database memory/total resident memory?
    We have already created a support incident with SAP. They have suggested a memory corruption. So let's see what do they say.
    Regards
    Angad

  • CS6 File Naming Question

    Since using CS6, there is something that has changed and has me confused:
    I used to be able to save a document with a different name, and the original name would not change.
    For instance, if I were working on a file named: 'Nature 1', and wanted to save a version of it with another name: 'Nature 2', I would be able to do so and 'Nature 1' would not change.
    Now, it seems, when I do this, 'Nature 1' is renamed 'Nature 2' - it's title overwritten.
    This has caused me to overwrite files when saving because the original name is changed.
    Is there a simple workaround for this?

    Well, I do have Photoshop CS4 on windows and I see no difference in file behavior, but I work differently.
    I would need a step-by-step description of what you do to get this problem to see if I can duplicate it.
    My files already have names when I open them, so if I make a change, File > Save respects that filename and won't change it.
    Where I might get in trouble is File > New, if I type "nature1" in the title box and hit enter opening it up in Photoshop. I then make a few changes and go to File > Save.  There I have a chance to name the file and even change the location. So if I type "nature2" and click Save, I just renamed the file,but I did not overwrite an earlier version.
    Anyway Photoshop CS6 won't overwrite a file without warning you.
    Gene

Maybe you are looking for