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

Re: Git 2.26.2 and failed self tests on OS X

From
PBPhilippe Blain <philippe.blain@me.com>
Date
May 5, 2020, 12:26 UTC
Message-ID
<A6880B7C-78B7-4D90-91E3-1CED85325FF2@me.com>
In-Reply-To
<20200505041033.w2q7h5k7otetfrus@tb-raspi4>
Hi everyone,
Show 18 quoted lines
> Le 5 mai 2020 à 00:10, Torsten Bögershausen <tboegi@web.de> a écrit :
> 
> On Mon, May 04, 2020 at 05:39:50PM -0400, Jeffrey Walton wrote:
>> On Mon, May 4, 2020 at 4:30 PM Jeffrey Walton <noloader@gmail.com> wrote:
>>> 
>>> On Mon, May 4, 2020 at 4:19 PM Torsten Bögershausen <tboegi@web.de> wrote:
>>>> On Mon, May 04, 2020 at 03:20:11PM -0400, Jeffrey Walton wrote:
>>>>> ...
>>>>>> Does
>>>>>> ./t3902-quoted.sh   -v -d
>>>>>> give anything useful ?
>>>>> 
>>>>> Yes, it looks like the command reveals a couple of problems.
>>>>> 
>>>>> fatal: iconv_open(UTF-8,UTF-8-MAC) failed, but needed:
>>>>>    precomposed unicode is not supported.
>>>>>    If you want to use decomposed unicode, run
>>>>>    "git config core.precomposeunicode false"

I also came across this error a few months ago with the conda-forge build of Git [1], which for the moment builds against their own build of (GNU) iconv.

Show 27 quoted lines
>>>> 
>>>> I am quite sure, that the trouble starts here.
>>>> It seems as if you are building iconv yourself ?
>>>> And that iconv does not include "UTF-8-MAC", which is a specialty
>>>> for Mac.
>>> 
>>> Oh, thanks. I was not aware.
>>> 
>>> I'll open a bug report with the iconv folks letting them know
>>> configure has some gaps on OS X.
>> 
>> Thanks again Torsten.
>> 
>> I am not seeing an option to enable the encoding in iConv. Would you
>> happen to know what is needed?
>> 
>> Thanks again.
>> 
>> $ cd libiconv-1.16
>> $ ./configure --help
>> `configure' configures libiconv 1.16 to adapt to many kinds of systems.
> 
> Hej Jeffrey,
> I am not an iconv expert - and don't intend to become one.
> The UTF-8-MAC conversion does probably only exist in the
> code for iconv shipped on Mac OS - so it could happen that this
> code is not open source.

Yes, this encoding only exists in the Apple fork of iconv, which is open-source (probably because of the original license); tarballs can be found at [2]. However in typical Apple fashion the versioning of their iconv fork is kind of undecipherable and hard to relate to the upstream iconv versioning.

Also, I searched the iconv mailing list [3] when I came across this error and the consensus seemed to be that they do not intend to add this encoding upstream.

Cheers,
Philippe.

[1] https://github.com/conda-forge/git-feedstock/issues/50 [2] https://opensource.apple.com/tarballs/libiconv/ [3] https://lists.gnu.org/archive/cgi-bin/namazu.cgi?query=utf-8-mac&submit=Search%21&idxname=bug-gnu-libiconv&max=20&result=normal&sort=score

Previous: Torsten BögershausenNext: Jeffrey Walton
Message 12 of 15 in “Git 2.26.2 and failed self tests on OS X”
  1. Jeffrey WaltonMay 4, 2020
  2. Eric SunshineMay 4, 2020
  3. Carlo Marcelo Arenas BelónMay 4, 2020
  4. Eric SunshineMay 4, 2020
  5. Torsten BögershausenMay 4, 2020
  6. Eric SunshineMay 4, 2020
  7. Jeffrey WaltonMay 4, 2020
  8. Torsten BögershausenMay 4, 2020
  9. Jeffrey WaltonMay 4, 2020
  10. Jeffrey WaltonMay 4, 2020
  11. Torsten BögershausenMay 5, 2020
  12. Philippe BlainMay 5, 2020
  13. Jeffrey WaltonMay 6, 2020
  14. Jeffrey WaltonMay 7, 2020
  15. Jeffrey WaltonMay 6, 2020

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.