Menu

#203 doesn't work for localized filenames

open
nobody
None
5
2014-02-06
2008-05-25
No

Problem description and partial patches at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=469886

Thanks to "Jiří Paleček" <jpalecek@web.de>

when I create a directory with localized name and try to diff files in that directory, I get a "No such file or directory" error.

[snip...]

I've created a patch that partially fixes the problem. Basicly, what needs to be done, is replace any occurence of (set/from)latin1() by

- local8Bit if it is while interfacing the system (like execve, command line...)
- nothing if the converted string is used in xxdiff itself (eg. don't convert string to latin1 and back)
- ascii() if you only expect ascii without question marks and anything else is an error

http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=71;filename=07_character_encoding.dpatch;att=1;bug=469886
http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=71;filename=08_character_encoding2.dpatch;att=2;bug=469886
http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=71;filename=09_character_encoding3.dpatch;att=3;bug=469886

Discussion

  • Y Giridhar Appaji Nag

     
  • Y Giridhar Appaji Nag

    Logged In: YES
    user_id=73891
    Originator: YES

    File Added: 07_character_encoding.dpatch

     
  • Y Giridhar Appaji Nag

    Logged In: YES
    user_id=73891
    Originator: YES

    File Added: 08_character_encoding2.dpatch

     
  • Y Giridhar Appaji Nag

     
  • Y Giridhar Appaji Nag

    Logged In: YES
    user_id=73891
    Originator: YES

    File Added: 09_character_encoding3.dpatch

     
  • Y Giridhar Appaji Nag

     
  • Rolf

    Rolf - 2008-09-01

    Logged In: YES
    user_id=1159152
    Originator: NO

    I can confirm this behaviour for Ubuntu hardy.

     

Log in to post a comment.