mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-08-04 00:14:11 +02:00
UpdateWrapper.__iter__ and .read() used len(line) which counts decoded characters, but the progress bar total comes from os.path.getsize() (raw bytes). For encodings like utf-16-le each character is 2 bytes, so the bar would only reach ~50%. Encode the string back with the file's encoding to get the correct byte length. Fixes #439 |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| __main__.py | ||
| cli.py | ||
| db.py | ||
| hookspecs.py | ||
| migrations.py | ||
| plugins.py | ||
| py.typed | ||
| recipes.py | ||
| utils.py | ||