]> git.ipfire.org Git - thirdparty/git.git/commitdiff
config: tell the user that we expect an ASCII character
authorKristoffer Haugsbakk <code@khaugsbakk.name>
Mon, 27 Mar 2023 19:43:44 +0000 (21:43 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Mar 2023 20:09:38 +0000 (13:09 -0700)
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>
config.c

index d0aff55fa66b7f57f29a958092ce898034547ec3..0b2679994e1a387241edbc3db710ea383a6dc1db 100644 (file)
--- a/config.c
+++ b/config.c
@@ -1686,7 +1686,7 @@ static int git_default_core_config(const char *var, const char *value, void *cb)
                        comment_line_char = value[0];
                        auto_comment_line_char = 0;
                } else
-                       return error(_("core.commentChar should only be one character"));
+                       return error(_("core.commentChar should only be one ASCII character"));
                return 0;
        }