Re: Git 2.26.2 and failed self tests on OS X
- From
- Philippe 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