#92 p7zip can't find NFC Unicode filename in OSX Terminal.

closed-accepted
my space
None
5
2010-05-29
2009-08-03
No

OS X's IME(input method editor) make NFC(normalized form C) characters.
When 7zip work in termial, it takes NFC arguments.
But OS X's BSD file APIs( such as readdir ) return NFD(normalized form D) characters.

So, hey can't be matched as same filename in FileFind.cpp,
I think that arguments[] will be decomposed in Main2(), when options.IsInTerminal is true.
But now I don't know how to NFC -> Apple's modified NFD string.
There is CFUniCharDecomposed() but I can't compile with it.

below text is actual example.
___________________________________________________
pinetree:a trip2me$ ls
ASCII 한글_NON_ASCII

pinetree:a trip2me$ 7za a test1 ASCII

7-Zip \(A\) 9.04 beta  Copyright \(c\) 1999-2009 Igor Pavlov  2009-05-30
p7zip Version 9.04 \(locale=utf8,Utf16=on,HugeFiles=on,2 CPUs\)

Scanning

Creating archive test1.7z

Compressing  ASCII      

Everything is Ok

pinetree:a trip2me$ 7za a -ba test2 한글_NON_ASCII
Scanning

한글_NON_ASCII: WARNING: No more files

Creating archive test2.7z

WARNINGS for files:

한글_NON_ASCII : No more files
----------------
WARNING: Cannot find 1 file
pinetree:a trip2me$

___________________________________________________

sincerely
trip2me.

Discussion

  • my space

    my space - 2010-05-29

    try p7zip 9.13

     
  • my space

    my space - 2010-05-29
    • assigned_to: nobody --> myspace
    • status: open --> closed-accepted
     

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

Sign up for the SourceForge newsletter:





No, thanks