config: tell the user that we expect an ASCII character
Commit 50b54fd72a (config: be strict on core.commentChar, 2014-05-17) notes that “multi-byte character encoding could also be misinterpreted”, and indeed a multi-byte codepoint (non-ASCII) is not accepted as a valid `core.commentChar`. Signed-off-by: Kristoffer Haugsbakk <code@khaugsbakk.name> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Kristoffer Haugsbakk committed
Mar 27, 2023 at 21:43 UTC
d3b3419f8f287cd9d17be30e50937cbc7c4951ff
1 file changed
+1
-1
config.c
+1
-1
@@ -1686,7 +1686,7 @@ static int git_default_core_config(const char *var, const char *value, void *cb)
1686
comment_line_char = value[0];
1687
auto_comment_line_char = 0;
1688
} else
1689
- return error(_("core.commentChar should only be one character"));
1689
+ return error(_("core.commentChar should only be one ASCII character"));
1690
return 0;
1691
}
1692