GNU bug report logs -
#54293
[WIP] home: Add home-git-service-type
Previous Next
Full log
View this message in rfc822 format
Maxime Devos <maximedevos <at> telenet.be> writes:
> 宋文武 schreef op ma 07-03-2022 om 22:51 [+0800]:
>> + (for-each
>> + (match-lambda
>> + ((key value)
>> + (simple-format #t "\t~a = ~s~%" key value)))
>
> What if I want to set the key 'bar' to the value 'foo bar ' (without
> teh quotes, but with the trailing space)? If I do ‘git config
> 'foo.bar' "foo bar "’, then the following is added to .git/config:
>
> [foo]
> bar = "foo bar "
>
> so it seems that some escaping may be necessary.
Yes, '~s' in the format string will use 'write' which will print strings
in double quotes with some escapes. I think it's compatible with
gitconfig's requirement.
>
> Also, what character encoding does git expect .git/config expect it to
> be in? UTF-8, whatever the current locale's encoding is, ...?
I guess it expect UTF-8, will do some tests later, thanks!
This bug report was last modified 3 years and 24 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.