Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 390215 - app-admin/conky: scroll misbehaves with UTF-8
Summary: app-admin/conky: scroll misbehaves with UTF-8
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Amadeusz Żołnowski (RETIRED)
URL: http://sourceforge.net/tracker/?func=...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-11 21:06 UTC by Amadeusz Żołnowski (RETIRED)
Modified: 2019-03-25 19:22 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
conky-1.8.1-utf8-scroll.patch (0001-Make-scroll-UTF-8-aware.-Fixes-bug-3134941.patch,3.13 KB, patch)
2011-11-11 21:09 UTC, Amadeusz Żołnowski (RETIRED)
Details | Diff
conky-1.8.1-utf8-scroll.patch (0001-Make-scroll-UTF-8-aware.-Fixes-bug-3134941.patch,2.75 KB, patch)
2011-11-12 00:42 UTC, Amadeusz Żołnowski (RETIRED)
Details | Diff
0001-Make-scroll-UTF-8-aware.-Fixes-bug-3134941.patch (0001-Make-scroll-UTF-8-aware.-Fixes-bug-3134941.patch,2.75 KB, patch)
2015-08-09 10:14 UTC, Amadeusz Żołnowski (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Amadeusz Żołnowski (RETIRED) gentoo-dev 2011-11-11 21:06:35 UTC
Just try the following example: ${scroll 10 Zażółcić gęślą jaźń}. The string should be encoded as UTF-8. Conky displays it ok without a scroll, but with it seems to shift string by a single byte instead of by single character. Conky tries to display a half of a character which leads to undesired shift of all text. In result Conky window blinks.

Bug has been reported to upstream as bug #3134941. See URL.

Reproducible: Always
Comment 1 Amadeusz Żołnowski (RETIRED) gentoo-dev 2011-11-11 21:09:38 UTC
Created attachment 292223 [details, diff]
conky-1.8.1-utf8-scroll.patch

Make scroll UTF-8 aware. Fixes bug #3134941.

The only issue with the patch is that it replaces part of last character
with space instead of expanding size to display yet another character.
Although final effect is much less annoying than all output blinking.
Comment 2 Amadeusz Żołnowski (RETIRED) gentoo-dev 2011-11-12 00:42:05 UTC
Created attachment 292241 [details, diff]
conky-1.8.1-utf8-scroll.patch

Make scroll UTF-8 aware.

(This patch has no side effects in contrary to previous one.)
Comment 3 Daniel Pielmeier gentoo-dev 2011-11-16 19:52:27 UTC
+  16 Nov 2011; Daniel Pielmeier <billie@gentoo.org> +conky-1.8.1-r5.ebuild,
+  +files/conky-1.8.1-utf8-scroll.patch:
+  Fix scroll variable for utf8. This fixes bug #390215. Thanks to Amadeusz
+  Żołnowski for the report and the patch.
Comment 4 Amadeusz Żołnowski (RETIRED) gentoo-dev 2015-08-09 10:14:29 UTC
Created attachment 408604 [details, diff]
0001-Make-scroll-UTF-8-aware.-Fixes-bug-3134941.patch

Previous patch has a bug tracked down by Andreas E. See https://sourceforge.net/p/conky/bugs/341/ comments.
Comment 5 Daniel Pielmeier gentoo-dev 2019-03-25 19:22:17 UTC
I think this has been fixed a long time ago.
Somehow I was not aware of this bug!