Pdftk cannot work with non-ascii named files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pdftk (Debian) |
Fix Released
|
Unknown
|
|||
pdftk (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: pdftk
Pdftk cannot work with non-ascii named files. For example:
-------
master@
total 7112
drwxr-xr-x 3 master master 8 2007-10-28 15:04 examples
-rw-r--r-- 1 master master 5842516 2007-10-28 15:03 tutorial.tar.gz
-rw-rw-r-- 1 master master 1437044 2007-10-02 08:46 Панкратьев.pdf
master@
Error: Failed to open PDF file:
Панкратьев.pdf
Errors encountered. No output created.
Done. Input errors, so no output created.
-------
It happens because input and output file names decode into Latin1 character set with the code like this one:
java::String* jv_output_
You can see it in the pdftk/pdftk.cc file.
Changed in pdftk: | |
status: | New → Confirmed |
Changed in pdftk: | |
status: | Unknown → Confirmed |
Changed in pdftk (Debian): | |
status: | Confirmed → Fix Released |
I can confirm UTF8 seems to confuse pdftk: I get "Error: Failed to open PDF file:" when I use filenames with french accents on Hardy.
Here's a blog entry from someone who claims to have a fix (source+win32 exe): blog.rubypdf. com/2007/ 07/19/pdftk- supports- chinese- path-now/
http://
I hav'nt had the time to try it yet, sorry.