Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#15 long file name support win32

None
closed
nobody
None
5
2013-08-03
2003-06-17
Ken Hancock
No

it appears that the latest win32 executables are built
with unicode libraries which causes command line
arguments with long paths to be discarded:

I would suggest changing instring[256] and
outstring[256] to [2048].

fails:
/d> ./pngcrush.exe -brute -rem alla -rem allb
../xxxxx/xxxxxxxx/xxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxx.png
../xxxxx/xxxxxxxx/xxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxx.png.tmp
/d> bash.exe: ./pngcrush.exe: Invalid argument

works:
/d>./pngcrush.exe -brute -rem alla -rem allb
../xxxxx/xxxxxxxx/xxxxxx/foo.png
../xxxxx/xxxxxxxx/xxxxxx/foo.png.tmp

pngcrush 1.5.10, Copyright (C) 1998-2002 Glenn
Randers-Pehrson

Discussion

  • Logged In: YES
    user_id=7859

    I installed grauw's Win32 executable in the File Release
    System, so you can get it from the usual DOWNLOAD area. Glenn

     
    • status: open --> closed
    • Group: -->