[Slackbuilds-users] Wrong characters in slack-descs

Matteo Bernardini matteo.bernardini at gmail.com
Thu May 26 12:55:38 UTC 2016


2016-05-26 14:20 GMT+02:00 Didier Spaier <didier at slint.fr>:
> Hi admins and list,
>
> A warning from "slapt-get -u" told me that there are erroneous characters in:
> http://packages.slackonly.com/pub/packages/current-x86_64/PACKAGES.TXT
>
> Obviously they are in the description coming from the slack-descs.
>
> To find out I have run this script a copy of Ponce's git repo for -current:
> ✀ ---
> #/bin/sh
> LANG=en
> rm -f liste errors
> for d in $(find -name slack-desc -exec dirname '{}' ';'); do
>   printf "%b" "\n$d/slack-desc" >> liste
>   iconv -f UTF-8 -t ASCII $d/slack-desc 1>/dev/null  2>> liste
> done
> sed -n "/illegal/s/iconv//p" liste|sort > errors
> rm -f liste
> ✀ ---
>
> The file "errors" is attached.
>
> These errors prevent displaying the package's description in packages tools.
>
> FYI I find geany handy to highlight the offending characters.
>
> My findings are for Slackware-current, maybe 14.1 could be scanned as well.

thanks Didier, good catch!

I'll have a look. most probably those utf8 characters disguised as
ascii slipped because we use utf8 editors so we didn't spotted them at
all.

I'll do a dedicated branch for them.

Matteo


More information about the SlackBuilds-users mailing list