Skip to content

Locally alias "latin-1" to "ISO-8859-1"

Junio C Hamano git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2utf8: refactor code to decide fallback encodingutf8.c+18 -112 replies
2/2utf8: accept "latin-1" as ISO-8859-1utf8.c+7 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Locally alias "latin-1" to "ISO-8859-1"

Some systems do not seem to ship "latin-1" as a valid locale, even though they happilly accept more modern official name "ISO-8859-1". Naturally, "iconv -f iso-8859-1" succeeds while "iconv -f latin-1" fails on such a system.

We already have in utf8.c to accomodate overly strict iconv_open() that does not like various spellings of UTF-8 when our users spell it differently from the most official "UTF-8" form. Piggyback on the mechanism and teach outselves that "latin-1" used to be the way to say "ISO-8859-1".

I feel dirty for doing it this way, but I found it the easiest workaround to apply recent patches we saw on the mailing list.

Junio C Hamano (2):
utf8: refactor code to decide fallback encoding
utf8: accept "latin-1" as ISO-8859-1

 utf8.c | 36 +++++++++++++++++++++++++-----------
 1 file changed, 25 insertions(+), 11 deletions(-)
Signature · 1 line
2.10.0-556-g5bbc40b