Disable legacy encoding mode when modpython is loaded.

Python is not happy when using non-unicode text as str.

Fix #1229
This commit is contained in:
Alexey Sokolov
2016-01-09 14:09:34 +00:00
parent 1e1fadbc2b
commit 4fe4a45dd6
8 changed files with 37 additions and 4 deletions
@@ -3,10 +3,15 @@
<div>
ZNC is compiled without encodings support. <a href="http://icu-project.org/">ICU</a> is required for it.
</div>
<? ENDIF ?>
<? ELSE ?><?IF LegacyEncodingDisabled ?>
<div>
<!-- TODO don't hardcode modpython here -->
Legacy mode is disabled by modpython.
</div>
<? ENDIF ?><? ENDIF ?>
<div>
<div class="checkboxandlabel checkbox">
<input type="radio" name="encoding_utf" id="encoding_utf_legacy" value="legacy" <? IF EncodingUtf == "legacy" ?>checked="checked"<? ENDIF ?> <? IF EncodingDisabled ?>disabled="disabled"<? ENDIF ?> />
<input type="radio" name="encoding_utf" id="encoding_utf_legacy" value="legacy" <? IF EncodingUtf == "legacy" ?>checked="checked"<? ENDIF ?> <? IF LegacyEncodingDisabled ?>disabled="disabled"<? ENDIF ?> />
<label for="encoding_utf_legacy">Don't ensure any encoding at all (legacy mode, not recommended)</label>
</div>
<div class="checkboxandlabel checkbox">