mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-02-18 20:30:35 +01:00
It turns out that the function did not work for outputs longer than 1024 UCS-2 tokens. Write non-BMP characters one by one to ensure that we count correctly.