Menu

#7 zenlib fails to open file as if it doesnt exist  Edit

pending
Sources
1
2015-12-06
2015-09-25
Anonymous
No

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

3 Attachments

Discussion

  • Jerome Martinez

    Jerome Martinez - 2015-12-06

    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
  • Jerome Martinez

    Jerome Martinez - 2015-12-06
    • status: unread --> pending
    • assigned_to: Jerome Martinez
     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.