b***@artifex.com
2017-11-02 13:30:37 UTC
http://bugs.ghostscript.com/show_bug.cgi?id=698719
Bug ID: 698719
Summary: fz_open_document const char* bug convert
Product: MuPDF
Version: 1.11
Hardware: PC
OS: Windows 7
Status: UNCONFIRMED
Severity: blocker
Priority: P4
Component: mupdf
Assignee: mupdf-***@artifex.com
Reporter: ***@yahoo.com.br
QA Contact: gs-***@ghostscript.com
Word Size: ---
// if I get a Cstring and then pass to std::string
// and then if I put the std::string.c_str() in the <filepath> the
//fz_open_document.
//std::string filepath(CW2A(l_SampleDlg.GetPathName()));
fz_document *_doc = fz_open_document(_ctx, filepath); /*== NULL*/
// simply dont open and return null
// ---- it necessary convert the cstring to const char*
//like this
/*
CString TempCs_Cs = l_SampleDlg.GetPathName();
const char* filepath;
CT2A ascii(TempCs_Cs, CP_UTF8);
TRACE(_T("UTF8: %S\n"), ascii.m_psz);
filepath = ascii;
fz_document *_doc = fz_open_document(_ctx, filepath); /* == Return success*/
*/
is that really supposed to happened?
Bug ID: 698719
Summary: fz_open_document const char* bug convert
Product: MuPDF
Version: 1.11
Hardware: PC
OS: Windows 7
Status: UNCONFIRMED
Severity: blocker
Priority: P4
Component: mupdf
Assignee: mupdf-***@artifex.com
Reporter: ***@yahoo.com.br
QA Contact: gs-***@ghostscript.com
Word Size: ---
// if I get a Cstring and then pass to std::string
// and then if I put the std::string.c_str() in the <filepath> the
//fz_open_document.
//std::string filepath(CW2A(l_SampleDlg.GetPathName()));
fz_document *_doc = fz_open_document(_ctx, filepath); /*== NULL*/
// simply dont open and return null
// ---- it necessary convert the cstring to const char*
//like this
/*
CString TempCs_Cs = l_SampleDlg.GetPathName();
const char* filepath;
CT2A ascii(TempCs_Cs, CP_UTF8);
TRACE(_T("UTF8: %S\n"), ascii.m_psz);
filepath = ascii;
fz_document *_doc = fz_open_document(_ctx, filepath); /* == Return success*/
*/
is that really supposed to happened?
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are receiving this mail because:
You are the QA Contact for the bug.