Bug 38777 - Dudle crashes on titles with german umlauts
Dudle crashes on titles with german umlauts
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Dudle
UCS 4.0
Other Linux
: P5 normal (vote)
: UCS 4.0-2-errata
Assigned To: Daniel Tröder
Stefan Gohmann
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-06-28 22:21 CEST by Daniel Tröder
Modified: 2015-11-20 10:52 CET (History)
3 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):
Max CVSS v3 score:


Attachments
Suggested here: https://www.bdjl.de/localhost/?p=4431 (489 bytes, patch)
2015-06-28 22:23 CEST, Daniel Tröder
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Tröder univentionstaff 2015-06-28 22:21:36 CEST
Reported here: http://forum.univention.de/viewtopic.php?f=48&t=4132

Suggested solution works for me (tested on UCS 4.0-2).
Comment 1 Daniel Tröder univentionstaff 2015-06-28 22:23:34 CEST
Created attachment 6985 [details]
Suggested here: https://www.bdjl.de/localhost/?p=4431
Comment 2 Daniel Tröder univentionstaff 2015-06-29 09:23:56 CEST
Commit 61538 (build 1.0.0-2.16.201506290909) fixes the crashes on non-ASCII titles.

Because of the Ruby documentation on encoding (http://ruby-doc.org/core-1.9.3/Encoding.html) a different approach was used to set the default encoding. Instead of patching the sources, the interpreter is called with appropriate environment variables.

Please note, that after changing the encoding, existing dudles with non-ascii characters could theoretically show encoding errors (although I wasn't able to produce this problem).
Comment 3 Stefan Gohmann univentionstaff 2015-07-03 06:20:58 CEST
OK, it works now.
Comment 4 Daniel Tröder univentionstaff 2015-07-03 09:06:02 CEST
r61692 adds a README_UPDATE.