Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH 3/4] utf8: die if failed to re-encoding

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:53:07

Nguyễn Thái Ngọc Duy  [off-list ref] writes:
Return value NULL in this case means "no conversion needed", which is
not quite true when conv == -1.
Doing this only when producing new commits to avoid spreading damage might
be a good idea.

But utf8.c::reencode_string() is sufficiently deep in the call-chains to
make me suspect that the codepaths this change affects are not limited to
creation ones.  If this also forbids readers from resurrecting salvageable
bits while reading (imagine your commit had "encodign vscii" but your log
message was in English, except only your name had letters outside ASCII
that I cannot locally convert to utf-8 for viewing), I do not think it is
an acceptable change.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help