Bug 27256 - Encoding-Probleme da LANG nicht gesetzt ist
Encoding-Probleme da LANG nicht gesetzt ist
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 3.0
Other Linux
: P5 normal (vote)
: UCS 3.0-2
Assigned To: Alexander Kläser
Andreas Büsching
: interim-1
Depends on: 27255
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-23 14:09 CEST by Alexander Kläser
Modified: 2012-07-20 15:25 CEST (History)
1 user (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Internationalization
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kläser univentionstaff 2012-05-23 14:09:08 CEST
Änderungen bitte nach 3.0-2 übernehmen. 

QA: Bitte überprüfen, dass keine schwerwiegenden Fehler aufterten, wenn locale/default auf einen anderen Encoding-Type als UTF-8 gesetzt ist.


+++ This bug was initially created as a clone of Bug #27255 +++

Über das Materialverteilungsprojekt sind Encoding-Probleme aufgefallen (siehe
Traceback unten). Zwar wird über /etc/python2.6/sitecustomize.py utf8 als
default-Encoding-Type angegeben, dies scheint aber ignoriert zu werden, da der
encoding-Type für den Modulprozess ANSI_X3.4-1968 ist. Auch andere Änderungen
von /usr/lib/python2.6/site.py bringen keine Veränderung.

> Traceback (most recent call last):
>   File "/usr/lib/pymodules/python2.6/univention/management/console/modules/__init__.py", line 102, in execute
>     func( request )
>   File "/usr/lib/pymodules/python2.6/univention/management/console/modules/distribution/__init__.py", line 167, in query
>     and (filter == 'all' or i.sender.dn == self._user_dn)
>   File "/usr/lib/pymodules/python2.6/univention/management/console/modules/distribution/util.py", line 108, in __getattribute__
>     object.__getattribute__(self, key)
>   File "/usr/lib/pymodules/python2.6/univention/management/console/modules/distribution/util.py", line 254, in isDistributed
>     files = [ ifn for ifn in self.files if os.path.exists(os.path.join(self.cachedir, ifn)) ]
>   File "/usr/lib/python2.6/genericpath.py", line 18, in exists
>     st = os.stat(path)
> UnicodeEncodeError: 'ascii' codec can't encode characters in position 37-40: ordinal not in range(128)
Comment 1 Alexander Kläser univentionstaff 2012-05-23 14:17:35 CEST
Die Änderungen wurden soweit übernommen.


 univention-management-console (4.0.256-1) unstable; urgency=low
 .
   * set the environment variable LANG to locale/default; Bug #27256
Comment 2 Alexander Kläser univentionstaff 2012-05-24 11:20:10 CEST
Die letzte Änderung aus Bug 27255 für atjobs wurde übernommen.


 univention-lib (1.0.73-1) unstable; urgency=low
 .
   * fixed locale problems when calling atq; Bug #27256
Comment 3 Andreas Büsching univentionstaff 2012-06-18 11:56:11 CEST
(In reply to comment #1)
>  univention-management-console (4.0.256-1) unstable; urgency=low
>  .
>    * set the environment variable LANG to locale/default; Bug #27256

Wurde übernommen

(In reply to comment #2)
>  univention-lib (1.0.73-1) unstable; urgency=low
>  .
>    * fixed locale problems when calling atq; Bug #27256

Wurde ebenfalls übernommen

Das Setzen der locale/default auf gültige oder ungültige Werte führt zu keinen Problemen

ChangeLog-Eintrag existiert
Comment 4 Stefan Gohmann univentionstaff 2012-07-20 15:25:27 CEST
UCS 3.0-2 has been released: 
  http://forum.univention.de/viewtopic.php?f=54&t=1905

If this error occurs again, please use "Clone This Bug".