summaryrefslogtreecommitdiff
path: root/apt-private/private-download.h
diff options
context:
space:
mode:
authorАлексей Шилин <rootlexx@mail.ru>2019-11-23 01:04:45 +0300
committerАлексей Шилин <rootlexx@mail.ru>2019-11-25 19:03:10 +0300
commit2497198e9599a6a8d4d0ad08627bcfc7ea49c644 (patch)
tree3d8f6ece94bf89c4ed7aa57352fe98a9d4eb3ffb /apt-private/private-download.h
parent6ad35af2b63b32f9070c622b69da1c05535086a0 (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