[utils] Fix _windows_write_string (Fixes #2779)
authorPhilipp Hagemeister <phihag@phihag.de>
Mon, 21 Apr 2014 02:59:44 +0000 (04:59 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Mon, 21 Apr 2014 02:59:46 +0000 (04:59 +0200)
commitd1b9c912a42de3b99ae73553d38fbfa50b8ebc52
tree90ca45d72c3c49245a84b9f1297f5e081b90f3c9
parentedec83a02579007da0f1043f7340ff2fe252a84b
[utils] Fix _windows_write_string (Fixes #2779)

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.
youtube_dl/utils.py