Bug 25112 - Kodierung für Umlaute überprüfen
Summary: Kodierung für Umlaute überprüfen
Status: RESOLVED INVALID
Alias: None
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
Version: UCS 3.0
Hardware: Other Linux
: P5 normal
Target Milestone: UCS 3.x
Assignee: UMC maintainers
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-02 16:29 CET by Alexander Kläser
Modified: 2014-11-28 10:13 CET (History)
2 users (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
Customer ID:
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 2011-12-02 16:29:30 CET
Im Neustart-Modul traten Problem mit Umlauten auf (siehe Bug 22848), diese wurden bei der Rückgabe an das Frontend nicht richtig kodiert. Es kann noch einmal generell für andere Module (bspw. System-Setup) überprüft werden, ob dort entsprechenden Meldungen (auch Fehlermeldungen?) korrekt kodiert an das Frontend übergeben werden.
Comment 1 Jascha Geerds univentionstaff 2011-12-02 17:27:32 CET
Ergänzung:

Die vom Frontend erhaltenen Strings konnten (wenn darin Umlaute enthalten waren) nicht ohne Weiteres in Python benutzt werden. Das subprocess-Modul verursachte Probleme, als man 'shutdown -r now -m $string_vom_frontend' aufgerufen hat -- .encode('utf-8') verschaffte Abhilfe.
Comment 2 Florian Best univentionstaff 2014-02-07 19:05:48 CET
This is because we are using simplejson to decode the received bytes.
simplejson returns a python str if the input is pure ascii but unicode if it contains e.g. umlauts.

subprocess, file.write, etc. expects to get str(bytes) not unicode and will therefore raise an exception.
Comment 3 Florian Best univentionstaff 2014-11-28 10:13:47 CET
This is not a bug. See comment #1 and #2.