Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 589362 - gentoolkit handles UTF-8 in use.desc poorly
Summary: gentoolkit handles UTF-8 in use.desc poorly
Status: RESOLVED DUPLICATE of bug 587606
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal trivial (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-22 11:35 UTC by Joerg Schaible
Modified: 2016-07-22 14:26 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joerg Schaible 2016-07-22 11:35:07 UTC
The descriptions for the local (language) flags contain non-portable characters causing 
  equery u hunspell
to fail.

Reproducible: Always

Steps to Reproduce:
1. equery u hunspell

Actual Results:  
$ equery u hunspell
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for app-text/hunspell-1.3.3:
 U I
 - - l10n_af      : Afrikaans
 - - l10n_bg      : Bulgarian
 - - l10n_ca      : Catalan
 - - l10n_cs      : Czech
 - - l10n_cy      : Welsh
 - - l10n_da      : Danish
 + + l10n_de      : German
 - - l10n_de-1901 : German (traditional orthography)
 - - l10n_el      : Modern Greek
 + + l10n_en      : English
 - - l10n_eo      : Esperanto
 - - l10n_es      : Spanish
 - - l10n_et      : Estonian
 - - l10n_fo      : Faroese
 + + l10n_fr      : French
 - - l10n_ga      : Irish
 - - l10n_gl      : Galician
 - - l10n_he      : Hebrew
 - - l10n_hr      : Croatian
 - - l10n_hu      : Hungarian
 - - l10n_ia      : Interlingua
 - - l10n_id      : Indonesian
 - - l10n_is      : Icelandic
 - - l10n_it      : Italian
 - - l10n_km      : Central Khmer
 - - l10n_ku      : Kurdish
 - - l10n_lt      : Lithuanian
 - - l10n_lv      : Latvian
 - - l10n_mk      : Macedonian
 - - l10n_ms      : Malay (macrolanguage)
Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/equery", line 38, in <module>
    equery.main(sys.argv)
  File "/usr/lib64/python2.7/site-packages/gentoolkit/equery/__init__.py", line 357, in main
    loaded_module.main(module_args)
  File "/usr/lib64/python2.7/site-packages/gentoolkit/equery/uses.py", line 309, in main
    display_useflags(output)
  File "/usr/lib64/python2.7/site-packages/gentoolkit/equery/uses.py", line 117, in display_useflags
    desc = twrap.fill(desc)
  File "/usr/lib64/python2.7/textwrap.py", line 338, in fill
    return "\n".join(self.wrap(text))
  File "/usr/lib64/python2.7/textwrap.py", line 329, in wrap
    return self._wrap_chunks(chunks)
  File "/usr/lib64/python2.7/site-packages/gentoolkit/textwrap_.py", line 95, in _wrap_chunks
    lines.append(indent + ''.join(cur_line))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 14: ordinal not in range(128)


Expected Results:  
Complete description of use flags for hunspell
Comment 1 Paul Varner (RETIRED) gentoo-dev 2016-07-22 14:26:47 UTC
This has been fixed and is released in the gentoolkit-3.2 release

*** This bug has been marked as a duplicate of bug 587606 ***