Univention Bugzilla – Full Text Bug Listing |
Summary: | Kodierung für Umlaute überprüfen | ||
---|---|---|---|
Product: | UCS | Reporter: | Alexander Kläser <klaeser> |
Component: | UMC (Generic) | Assignee: | UMC maintainers <umc-maintainers> |
Status: | RESOLVED INVALID | QA Contact: | |
Severity: | normal | ||
Priority: | P5 | CC: | best, geerds |
Version: | UCS 3.0 | ||
Target Milestone: | UCS 3.x | ||
Hardware: | Other | ||
OS: | Linux | ||
See Also: | https://forge.univention.org/bugzilla/show_bug.cgi?id=35687 | ||
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: |
Description
Alexander Kläser
2011-12-02 16:29:30 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. 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. This is not a bug. See comment #1 and #2. |