all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#65541: New fancy progress bars writing new lines instead of updating original
@ 2023-08-26  1:25 elaexuotee--- via Bug reports for GNU Guix
  2023-08-26  7:06 ` Julien Lepiller
  2023-09-01 16:45 ` bug#65541: want this patch chris
  0 siblings, 2 replies; 3+ messages in thread
From: elaexuotee--- via Bug reports for GNU Guix @ 2023-08-26  1:25 UTC (permalink / raw)
  To: 65541

The new pretty progress bars are quite nice. One issue I am ecountering,
however, is demonstrated in the snippet below:

    オブジェクトにインデックスを付けています  71% ▕████████████████████████████████████████████████████████████████████████████████████████████▉
    オブジェクトにインデックスを付けています  74% ▕█████████████████████████████████████████████████████████████████████████████████████████████████▏
    オブジェクトにインデックスを付けています  77% ▕█████████████████████████████████████████████████████████████████████████████████████████████████████▍
    オブジェクトにインデックスを付けています  81% ▕█████████████████████████████████████████████████████████████████████████████████████████████████████████▋
    オブジェクトにインデックスを付けています  84% ▕█████████████████████████████████████████████████████████████████████████████████████████████████████████████▊
    オブジェクトにインデックスを付けています  87% ▕█████████████████████████████████████████████████████████████████████████████████████████████████████████████████
    オブジェクトにインデックスを付けています  90% ▕█████████████████████████████████████████████████████████████████████████████████████████████████████████████████

When preceeding text contains double-width characters, progress bar updates end
up printing new lines instead of overwriting the original. When the preceeding
text is ascii, such as for substitute downloads, then the bars work
beautifully.

My guess is that the width-calculation simply forgets to account for possible
double-width charaters in the text snippet.

Anyone else seeing this?

Cheers,
B. Wilson




^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#65541: New fancy progress bars writing new lines instead of updating original
  2023-08-26  1:25 bug#65541: New fancy progress bars writing new lines instead of updating original elaexuotee--- via Bug reports for GNU Guix
@ 2023-08-26  7:06 ` Julien Lepiller
  2023-09-01 16:45 ` bug#65541: want this patch chris
  1 sibling, 0 replies; 3+ messages in thread
From: Julien Lepiller @ 2023-08-26  7:06 UTC (permalink / raw)
  To: 65541; +Cc: elaexuotee

Le Sat, 26 Aug 2023 10:25:53 +0900,
elaexuotee--- via Bug reports for GNU Guix <bug-guix@gnu.org> a écrit :

> The new pretty progress bars are quite nice. One issue I am
> ecountering, however, is demonstrated in the snippet below:
> 
>     オブジェクトにインデックスを付けています  71%
> ▕████████████████████████████████████████████████████████████████████████████████████████████▉
> オブジェクトにインデックスを付けています  74%
> ▕█████████████████████████████████████████████████████████████████████████████████████████████████▏
> オブジェクトにインデックスを付けています  77%
> ▕█████████████████████████████████████████████████████████████████████████████████████████████████████▍
> オブジェクトにインデックスを付けています  81%
> ▕█████████████████████████████████████████████████████████████████████████████████████████████████████████▋
> オブジェクトにインデックスを付けています  84%
> ▕█████████████████████████████████████████████████████████████████████████████████████████████████████████████▊
> オブジェクトにインデックスを付けています  87%
> ▕█████████████████████████████████████████████████████████████████████████████████████████████████████████████████
> オブジェクトにインデックスを付けています  90%
> ▕█████████████████████████████████████████████████████████████████████████████████████████████████████████████████
> 
> When preceeding text contains double-width characters, progress bar
> updates end up printing new lines instead of overwriting the
> original. When the preceeding text is ascii, such as for substitute
> downloads, then the bars work beautifully.
> 
> My guess is that the width-calculation simply forgets to account for
> possible double-width charaters in the text snippet.
> 
> Anyone else seeing this?
> 
> Cheers,
> B. Wilson
> 

I don't think it's specific to the fancy bars, and I was able to
reproduce with "LANG=ja_JP.UTF-8 guix pull".

I sent a patch, now tracked https://issues.guix.gnu.org/65546, which
fixes the issue.

To test it, I did:

msgfmt po/guix/ja.po
cd ../..
mkdir -p ja/LC_MESSAGES
mv messages.mo ja/LC_MESSAGES/guix.mo
./configure --localstatedir=/var --sysconfdir=/etc --localedir=$(pwd)
make
./pre-inst-env guix pull

(if you don't specify a localedir, it'll try to find the translations
in /usr by default)

No more newlines :)




^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#65541: want this patch
  2023-08-26  1:25 bug#65541: New fancy progress bars writing new lines instead of updating original elaexuotee--- via Bug reports for GNU Guix
  2023-08-26  7:06 ` Julien Lepiller
@ 2023-09-01 16:45 ` chris
  1 sibling, 0 replies; 3+ messages in thread
From: chris @ 2023-09-01 16:45 UTC (permalink / raw)
  To: 65541; +Cc: chris

As a CJK user hoping Julien's patch is accepted soon, this message is my "+1".




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-09-03 14:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-26  1:25 bug#65541: New fancy progress bars writing new lines instead of updating original elaexuotee--- via Bug reports for GNU Guix
2023-08-26  7:06 ` Julien Lepiller
2023-09-01 16:45 ` bug#65541: want this patch chris

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.