Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#58978 - [liboping] UTF-8 prettyping doesn't work
Attached to Project:
Community Packages
Opened by Aria Edmonds (missar1a) - Tuesday, 12 June 2018, 07:01 GMT
Last edited by Gaetan Bisson (vesath) - Wednesday, 13 June 2018, 18:57 GMT
Opened by Aria Edmonds (missar1a) - Tuesday, 12 June 2018, 07:01 GMT
Last edited by Gaetan Bisson (vesath) - Wednesday, 13 June 2018, 18:57 GMT
|
DetailsDescription:
The function has_utf8 will always return false, due to arch linux not having ncursesw, just ncurses(https://bugs.archlinux.org/task/17590). The offending line is quite obvious: static _Bool has_utf8() /* {{{ */ { # if HAVE_NCURSESW_NCURSES_H if (!opt_utf8) { /* Automatically determine */ if (strcasecmp ("UTF-8", nl_langinfo (CODESET)) == 0) opt_utf8 = 2; else opt_utf8 = 1; } return ((_Bool) (opt_utf8 - 1)); #else return (0); #endif } /* }}} _Bool has_utf8 */ I fixed this locally by changing the line to # if HAVE_NCURSES_H and then it works fine. I documented this on the git: https://github.com/octo/liboping/issues/37 Additional info: * version 1.10.0-3 ~ ❯❯❯ find /usr/include | grep curses /usr/include/cursesw.h /usr/include/cursesp.h /usr/include/cursesm.h /usr/include/cursesf.h /usr/include/cursesapp.h /usr/include/ncurses_dll.h /usr/include/ncurses.h /usr/include/curses.h ~ ❯❯❯ echo $LANG en_AU.UTF-8 Steps to reproduce: $ noping -g prettyping 8.8.8.8 |
This task depends upon
Closed by Gaetan Bisson (vesath)
Wednesday, 13 June 2018, 18:57 GMT
Reason for closing: Fixed
Additional comments about closing: liboping-1.10.0-4
Wednesday, 13 June 2018, 18:57 GMT
Reason for closing: Fixed
Additional comments about closing: liboping-1.10.0-4
Can you send us a screenshot of `noping -g prettyping 8.8.8.8` showing the defect?
Could you also tell us what `echo -e '\xe2\x94\x8c\xe2\x94\x80'` outputs in your terminal?
Cheers.
To help us understand the problem could you post two screenshots:
- One with the current Arch package in a situation that exhibits the display issue.
- One with your modified package (with your patch applied) in the same situation showing that the issue is fixed.
Cheers.