|
From: | Tim Rühsen |
Subject: | Re: [Wget-dev] wget2 | Progress bar: handle utf-8 characters in filenames (#375) |
Date: | Tue, 21 Aug 2018 13:35:30 +0000 |
>From your last link, see answer #3 (about wcwidth/wcswidth which are POSIX). Citation from there: ``` The size of the string as it appears on the screen is unrelated to the number of code points in the string. One has to communicate with the rendering engine for this. Code points do not occupy one column even in monospace fonts and terminals. POSIX takes this into account. ``` So why are you not using wcwidth() ? You can find code in the src/progress.c from wget1.x which you may shamelessly copy&paste as you like (Copyright is also by FSF). -- Reply to this email directly or view it on GitLab: https://gitlab.com/gnuwget/wget2/issues/375#note_95868325 You're receiving this email because of your account on gitlab.com.
[Prev in Thread] | Current Thread | [Next in Thread] |