diff options
author | Алексей Шилин <rootlexx@mail.ru> | 2019-11-23 01:04:45 +0300 |
---|---|---|
committer | Алексей Шилин <rootlexx@mail.ru> | 2019-11-25 19:03:10 +0300 |
commit | 2497198e9599a6a8d4d0ad08627bcfc7ea49c644 (patch) | |
tree | 3d8f6ece94bf89c4ed7aa57352fe98a9d4eb3ffb /apt-private/private-download.h | |
parent | 6ad35af2b63b32f9070c622b69da1c05535086a0 (diff) |
Fix progress bar width for multibyte charsets
When using locale in which symbols occupy more than 1 byte (for example,
ru_RU.UTF-8), the progress bar width was calculated incorrectly because
std::string::size() returns the number of bytes rather than the number of
actual characters. Use the newly introduced APT::String::DisplayLength()
to calculate the width instead.
Diffstat (limited to 'apt-private/private-download.h')
0 files changed, 0 insertions, 0 deletions