mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-24 20:14:28 -04: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:
parent
15fdca2a03
commit
dff534140a
26 changed files with 172 additions and 132 deletions
|
@ -78,8 +78,8 @@ static void test_csv(const testCtx *const p_ctx) {
|
|||
"/backend/tests/data/imail/usps/", "uspsIMbEncoderTestCases.csv"), "testUtilDataPath == 0\n");
|
||||
|
||||
for (j = 0; j < perf_iterations; j++) {
|
||||
fd = fopen(csvfile, "r");
|
||||
assert_nonnull(fd, "fopen(%s) == NULL", csvfile);
|
||||
fd = testUtilOpen(csvfile, "r");
|
||||
assert_nonnull(fd, "testUtilOpen(%s) == NULL", csvfile);
|
||||
|
||||
while (fgets(buffer, sizeof(buffer), fd) != NULL) {
|
||||
const char *b;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue