Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Decoding JSON fails with non-English LC_NUMERIC #3

Closed
jtojnar opened this issue Nov 22, 2020 · 2 comments
Closed

Decoding JSON fails with non-English LC_NUMERIC #3

jtojnar opened this issue Nov 22, 2020 · 2 comments

Comments

@jtojnar
Copy link
Contributor

jtojnar commented Nov 22, 2020

Turns out VLC uses old and buggy dkjson version, I opened an issue against VLC.

If you encounter videos mysteriously not playing, try adding latest version of dkjson to ~/.local/share/vlc/lua/modules/.

@jtojnar
Copy link
Contributor Author

jtojnar commented Feb 25, 2024

I would seriously advise against using that. setlocale(3) is not thread-safe and, if os.setlocale is just a wrapper around the libc function, there is a chance of it seriously fucking up VLC.

In worst case, you might get random crashes – much harder to debug than explicit decode errors.

If you really want to fix it, just download latest version of dkjson until code.videolan.org/videolan/vlc/-/merge_requests/3318 is merged.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants
@jtojnar @mjasny and others