Skip to content

Commit ec18c58

Browse files
committed
Output errno on error (helps debugging)
1 parent 4809fdc commit ec18c58

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/windows-msvc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ env:
1717
VCVARS64: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat
1818

1919
VCPKG_ROOT: C:\vcpkg
20-
VCPKGS32: mpir:x86-windows pdcurses:x86-windows berkeleydb:x86-windows libxml2:x86-windows cjson:x86-windows
21-
VCPKGS64: mpir:x64-windows pdcurses:x64-windows berkeleydb:x64-windows libxml2:x64-windows cjson:x64-windows
20+
VCPKGS32: mpir:x86-windows pdcurses:x86-windows berkeleydb:x86-windows libxml2:x86-windows cjson:x86-windows libiconv:x86-windows
21+
VCPKGS64: mpir:x64-windows pdcurses:x64-windows berkeleydb:x64-windows libxml2:x64-windows cjson:x64-windows libiconv:x64-windows
2222

2323
MSYS2_ROOT: C:\msys64
2424
MSYSTEM: UCRT64

cobc/gentable.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,9 @@ gentable (FILE *stream, const char *code_ebcdic, const char *code_ascii, char re
8787
--ascii_size;
8888
++nb_irreversible;
8989
} else {
90-
cb_error (_("an error occurred after converting %ld characters"),
91-
(ebcdic_ptr - ebcdic));
90+
cb_error (_("an error occurred after converting %ld characters (%d, %ld)"),
91+
(ebcdic_ptr - ebcdic),
92+
errno, res);
9293
iconv_close (ic);
9394
return -1;
9495
}

0 commit comments

Comments
 (0)