From 63733d795a2ad2faec4b53e39ec41e74c029d736 Mon Sep 17 00:00:00 2001 From: zeripath Date: Tue, 2 Jun 2020 23:20:19 +0100 Subject: [PATCH] Fix chardet test and add ordering option (#11621) * Fix chardet test and add ordering option Signed-off-by: Andrew Thornton * minor fixes Signed-off-by: Andrew Thornton * remove log Signed-off-by: Andrew Thornton * remove log2 Signed-off-by: Andrew Thornton * only iterate through top results Signed-off-by: Andrew Thornton * Update docs/content/doc/advanced/config-cheat-sheet.en-us.md * slight restructure of for loop Signed-off-by: Andrew Thornton Co-authored-by: techknowlogick --- doc/advanced/config-cheat-sheet.en-us.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/advanced/config-cheat-sheet.en-us.md b/doc/advanced/config-cheat-sheet.en-us.md index f0908c22..c29151f6 100644 --- a/doc/advanced/config-cheat-sheet.en-us.md +++ b/doc/advanced/config-cheat-sheet.en-us.md @@ -46,7 +46,8 @@ Values containing `#` or `;` must be quoted using `` ` `` or `"""`. an absolute path. - `SCRIPT_TYPE`: **bash**: The script type this server supports. Usually this is `bash`, but some users report that only `sh` is available. -- `ANSI_CHARSET`: **\**: The default charset for an unrecognized charset. +- `DETECTED_CHARSETS_ORDER`: **UTF-8, UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE, ISO-8859, windows-1252, ISO-8859, windows-1250, ISO-8859, ISO-8859, ISO-8859, windows-1253, ISO-8859, windows-1255, ISO-8859, windows-1251, windows-1256, KOI8-R, ISO-8859, windows-1254, Shift_JIS, GB18030, EUC-JP, EUC-KR, Big5, ISO-2022, ISO-2022, ISO-2022, IBM424_rtl, IBM424_ltr, IBM420_rtl, IBM420_ltr**: Tie-break order of detected charsets - if the detected charsets have equal confidence, charsets earlier in the list will be chosen in preference to those later. Adding `defaults` will place the unnamed charsets at that point. +- `ANSI_CHARSET`: **\**: Default ANSI charset to override non-UTF-8 charsets to. - `FORCE_PRIVATE`: **false**: Force every new repository to be private. - `DEFAULT_PRIVATE`: **last**: Default private when creating a new repository. \[last, private, public\]