Commit 4cf9e06
Fix filename too long error for CJK titles in conversions
_safe_filename() truncated at 100 characters, but CJK chars are 3 bytes
each in UTF-8, producing ~300-byte filenames that exceed Linux's 255-byte
limit. Now truncates by UTF-8 byte length (220 bytes) with safe
multi-byte boundary handling.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 711d022 commit 4cf9e06
1 file changed
Lines changed: 13 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
790 | 790 | | |
791 | 791 | | |
792 | 792 | | |
793 | | - | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
794 | 799 | | |
795 | | - | |
| 800 | + | |
796 | 801 | | |
797 | | - | |
798 | | - | |
799 | | - | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
800 | 808 | | |
0 commit comments