git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] utf8.c: print warning about disabled iconv

From
Max Kirillov <max@max630.net>
Date
Jun 8, 2015, 21:07 UTC
Message-ID
<20150608210705.GA22850@wheezy.local>
In-Reply-To
<xmqqfv62ch0v.fsf@gitster.dls.corp.google.com>
Hi.
On Mon, Jun 08, 2015 at 09:16:16AM -0700, Junio C Hamano wrote:
> Max Kirillov <max@max630.net> writes:
Show 9 quoted lines
>> This gives undesirable result that returned data or even
>> data written into repository is incorrect and user is not
>> aware about it.
> 
> I do not necessarily agree with that.  The user knows what
> s/he is doing, data written to or shown from the
> repository is correct as far as the user is concerned, and
> the user takes the full respoinsibility when compiling out
> certain features.

User, in theory, can be not the same person who builds, or can be not aware that the case needs recoding. It actually started when I compiled git without iconv support and got about 10 failed tests, and only 2 of them mentioned i18n in their name.

Compiling out other features is not exactly the same. If user compiles out curl, for example, git will not be able to push or fetch through http, but it is not going to pretend to be working, it will fail visibly.

Show 6 quoted lines
> I actually am OK if the user gets exactly the same warning between
> the two cases:
> 
>  - iconv failed to convert in the real reencode_string_len()
> 
>  - we compiled out iconv() and real conversion was asked.

Does 'exactly the same' mean the same text? Shouldn't it describe the reason? I can see 2 possible failures in case of real iconv: unknown or unsupported encoding and invalid input. Wouldn't them better to be detailed in warning?

-- 
Max
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 8 in “utf8.c: print warning about disabled iconv”
  1. utf8.c: print warning about disabled iconvMax Kirillov, Jun 6, 2015
  2. Junio C HamanoJun 8, 2015
  3. Max KirillovJun 8, 2015
  4. Junio C HamanoJun 8, 2015
  5. utf8.c: print warning about iconv errorsMax Kirillov, Aug 14, 2015
  6. Junio C HamanoAug 14, 2015
  7. Jeff KingAug 17, 2015
  8. Junio C HamanoAug 17, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.