I was originally trying to parse info from an mkv using mediainfo but was getting no output. Loong Jin helped determine the problem seems to be that zenlib doesn't think a file exists even though it actually does. The file is accessible no problem by other software such as ffprobe and mpv-player.
I'm using Debian (Testing) Linux 32bit, libzen0v5:i386 0.4.31-4, no desktop installed.
Attached is an strace log and the test program (+ results) Loong Jin had me try that brought us to his conclusion that this must be a bug in zenlib. The test program was compiled with:
g++ test-zenlib-file-exists.cc -o test-zenlib-file-exists pkg-config --cflags --libs libzen
Anonymous
Works well on my side, I can not reproduce the issue.
I see potential problems:
- Unfortunately, there is a link if you compile without -DUNICODE even if the lib is configured with UNICODE. Debian/Ubuntu version is built with UNICODE. does pkg-config --cflags libzen have -DUNICODE?
- Exists() expects an wchar_t *, else the char * is transformed to unicdoe. Please try with ZenLib::File::Exists (Ztring().From_Local(argv[1])) in order to see if the issue is with the implicit cast.
Which locale do you have? not "utf8" something?
Last edit: Jerome Martinez 2015-12-06