mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
CLI: fix batch mode fopen()
-> win_fopen()
(Windows)
GUI: fix `save_to_file()` `filename.toLatin1()` -> `toUtf8()` tests: `fopen()` -> `testUtilOpen()`, `remove()` -> `testUtilRemove()` ticket #288, props Marcel
This commit is contained in:
@ -844,7 +844,7 @@ namespace Zint {
|
||||
|
||||
bool QZint::save_to_file(const QString& filename) {
|
||||
if (resetSymbol()) {
|
||||
strcpy(m_zintSymbol->outfile, filename.toLatin1().left(255));
|
||||
strcpy(m_zintSymbol->outfile, filename.toUtf8().left(255));
|
||||
if (m_segs.empty()) {
|
||||
QByteArray bstr = m_text.toUtf8();
|
||||
m_error = ZBarcode_Encode_and_Print(m_zintSymbol, (unsigned char *) bstr.data(), bstr.length(),
|
||||
|
Reference in New Issue
Block a user