Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Slice_longfilenames setting makes cyrillic names in the playlist half the number of characters set #60

Open
yyakko opened this issue Aug 12, 2021 · 1 comment

Comments

@yyakko
Copy link

yyakko commented Aug 12, 2021

This seems to happen because each cyrillic character, unlike latin, is two bytes, and the "len" function in line 332 actually counts the number of bytes, not characters.

@jonniek
Copy link
Owner

jonniek commented Aug 14, 2021

It would be trivial in Lua 5.3. Unfortunately mpv doesn't support it.

Easiest solution would probably be to rewrite this whole script in JS 🤷‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants