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

Early termination when filename is too long #213

Open
sorairolake opened this issue Sep 6, 2024 · 0 comments
Open

Early termination when filename is too long #213

sorairolake opened this issue Sep 6, 2024 · 0 comments

Comments

@sorairolake
Copy link
Contributor

The maximum filename length is 240 bytes on Commons.

There is a hard limit on filenames of 240 bytes long.

https://commons.wikimedia.org/wiki/Commons:File_naming#Clear

Japanese typically uses 3 bytes to represent a single character when encoded in UTF-8. This is about 80 characters. This also applies to Chinese and Korean.

Sometimes, the filename length limit is reached in these languages, so I think it is better to check the filename length before processing.

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

No branches or pull requests

1 participant