#1 Changing case is not working

closed-fixed
nobody
None
9
2004-02-26
2003-01-30
Zurd
No

Trying to change the case of letter :

UPPER, lower or Only First

doesn't work. In the Newname column you can see it has
been changed to the correct one but after clicking
Apply, it doesn't change anything.

Discussion

  • Zurd

    Zurd - 2003-11-03
    • priority: 5 --> 9
     
  • Zurd

    Zurd - 2003-11-03

    Logged In: YES
    user_id=668914

    Ok, so this is not a bug, it's all working fine with a Linux
    EXT3 partition. I was trying to change the case on a
    mounted Windows 2000 FAT32 partition. Ever tried changing
    "file.txt" to "FILE.TXT" on a FAT32 partition? It won't
    work. You will have to change "file.txt" to "file2.txt"
    then to "FILE.TXT". Maybe that could be a new feature in
    GPRename? It should change case like this :
    1) mv file.txt file-gprename_tmp.txt
    2) mv file-gprename_tmp.txt FILE.TXT

    As for now, anyone trying to change case on a FAT32 can use
    a script like this one :
    for i in *[A-Z]* ;
    do
    mv $i 1$i
    mv 1$i `echo $i |tr "A-Z" "a-z"` ;
    done

     
  • Zurd

    Zurd - 2003-11-05

    Logged In: YES
    user_id=668914

    I have created a patch (see attached files), just use that
    gprename.pl file and overwrite the other one.

    Here's the new stuff I added, only found in the "sub apply" :

    my $name_tmp;
    $name_tmp = $path . "/" . $new_names{$keyi} . _ "gprename_tmp";
    rename( $name_tmp, $name_n );

    In short, file name will be changed to the original filename
    + gprename_tmp at the end and then this filename will be
    switched to the new one as choosen by the user.

    Important, there's only one bug and I haven't found what it is :
    If your filename is 8 or less character the Uppercase won't
    work! It has to do with the 8 character filename in DOS but
    I just don't understand the relation. Guess it can't be
    help for now, see more at
    http://bugzilla.kernel.org/show_bug.cgi?id=1463 as it is a
    vfat module bug.

     
  • Zurd

    Zurd - 2003-11-05

    new gprename.pl patched for case sensitive on a vfat partition

     
  • Zurd

    Zurd - 2004-02-26
    • status: open --> closed-fixed
     
  • Zurd

    Zurd - 2004-02-26

    Logged In: YES
    user_id=668914

    This has been fixed in the 1.0 release

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks