[Poppler-bugs] [Bug 106965] New: File name with diacritical character are created with UTF-8 charset on Windows environment instead of UTF-16
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Jun 19 17:13:43 UTC 2018
https://bugs.freedesktop.org/show_bug.cgi?id=106965
Bug ID: 106965
Summary: File name with diacritical character are created with
UTF-8 charset on Windows environment instead of UTF-16
Product: poppler
Version: unspecified
Hardware: x86 (IA32)
OS: Windows (All)
Status: NEW
Severity: major
Priority: medium
Component: pdftohtml
Assignee: poppler-bugs at lists.freedesktop.org
Reporter: thibaut.brard at gmail.com
Created attachment 140233
--> https://bugs.freedesktop.org/attachment.cgi?id=140233&action=edit
Utils: use openFile instead of fopen for _WIN32 environment compatibility
(UTF-16 file name)
When using pdftohtml (and probably other tools from /utils), I faced a problem
with file naming using diacritical char in Windows environment.
ie: when expected "file_é.xml" we obtain "file_é.xml"
The problem is that in many place in the code the function 'fopen' is used to
create files instead of the fileOpen function (from goo/gfile.h).
The fileOpen method is already dealing with that problem. Please find in
attachment a patch to fix that issue in every .cc file from utils.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20180619/a1f9510e/attachment.html>
More information about the Poppler-bugs
mailing list