Bug#595563: only happens when Chinese characters in filename

2010-09-05 Thread jidanni
AB> It still works correctly for me if I don't resize the window.
Maybe on a window already too narrow for the whole line, it will happen too.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#595563: only happens when Chinese characters in filename

2010-09-05 Thread Ansgar Burchardt
tags 595563 = confirmed
severity 595563 minor
thanks

jida...@jidanni.org writes:

> It turns out the problem only happens when the filename is Chinese:
> $ clive http://www.youtube.com/watch?v=zbC7TN4aOYY
> $BCK?H=w?4EE4aH~>/=w5L;R$(Da2$BBh;0...@-f\pr(B.flv  74%3.1M /  4.2M   
>17.8K
> $BCK?H=w?4EE4aH~>/=w5L;R$(Da2$BBh;0...@-f\pr(B.flv  75%3.1M /  4.2M   
>17.8K
> $BCK?H=w?4EE4aH~>/=w5L;R$(Da2$BBh;0...@-f\pr(B.flv  75%3.1M /  4.2M   
>17.9K

I can reproduce this when I resize my Konsole window during the
download:

% clive "http://www.youtube.com/watch?v=zbC7TN4aOYY";
fetch http://www.youtube.com/watch?v=zbC7TN4aOYY ...done.
verify video link ...done.
$BCK?H=w?4EE4aH~>/=w5L;R$(Da2$BBh;0...@-f\pr(B.flv  44%5.1M / 11.6M
$BCK?H=w?4EE4aH~>/=w5L;R$(Da2$BBh;0...@-f\pr(B.flv  44%5.2M / 11.6M
$BCK?H=w?4EE4aH~>/=w5L;R$(Da2$BBh;0...@-f\pr(B.flv  46%5.3M / 11.6M
$BCK?H=w?4EE4aH~>/=w5L;R$(Da2$BBh;0...@-f\pr(B.flv  47%5.5M / 11.6M
$BCK?H=w?4EE4aH~>/=w5L;R$(Da2$BBh;0...@-f\pr(B.flv  48%5.6M / 11.6M
481.1K/s 12s

After resizing the download speed ends up on the next line, no matter
how wide the window is.  It still works correctly for me if I don't
resize the window.

It works correctly with only half-width characters in the file name so I
suppose the problem is clive believing that every character takes the
same amount of space.

Also the download speed and time estimate are intended to be
right-aligned, but this only happens once the window is resized.  clive
just assumes a width of 80 characters before that.

Regards,
Ansgar



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#595563: only happens when Chinese characters in filename

2010-09-04 Thread jidanni
It turns out the problem only happens when the filename is Chinese:
$ clive http://www.youtube.com/watch?v=zbC7TN4aOYY
男身女心電玩美少女橘子辦第三性聚會.flv  74%3.1M /  4.2M  17.8K
男身女心電玩美少女橘子辦第三性聚會.flv  75%3.1M /  4.2M  17.8K
男身女心電玩美少女橘子辦第三性聚會.flv  75%3.1M /  4.2M  17.9K
Also why the giant gap before the last column? Don't you realize our
terminal is probably not wide?



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org