From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/27979 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "'Nick Bart' via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: Error compiling with icu support / possible workaround? Date: Sun, 21 Mar 2021 13:04:36 +0000 Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="b1_CaylN2YFRuTWudwXBnLiWOD4bG112KrIlsF4UH6agFY" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21501"; mail-complaints-to="usenet@ciao.gmane.io" To: "pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org" Original-X-From: pandoc-discuss+bncBDR4BGVI44MRB34I3WBAMGQEQMDAU5A-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Mar 21 14:04:50 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wm1-f58.google.com ([209.85.128.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lNxlB-0005Te-7r for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 21 Mar 2021 14:04:49 +0100 Original-Received: by mail-wm1-f58.google.com with SMTP id n2sf14092828wmi.2 for ; Sun, 21 Mar 2021 06:04:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1616331888; cv=pass; d=google.com; s=arc-20160816; b=JmRyBrjjPgubQexTCzV8fqZ4GLUeiMu+UFR+OFHe6f5APLTbVgTZYQvReTYKgQigbm 4Sl+vTXIrrU8QFyq6zpTa4RYjpoJTdQ3YI0EJBMqUJten7g8wln0YGk3VtO+4LuC21pU eF2kX18LlX3qO456apBQi6i5MD4U9WXAVXwfGrSVQQGchZaF4p5a14QFHtW7bMoOClwa T2i3I4w8Lz0KXSYWOwqEkCq7u7Fki5sXHgkV2TvU/L8FzPUOT5tUTsmFCb3lomglENKL 36BHnc/95SI19VxC8dLCyv7sYi4LZBd5TinsgD9aIirXccfAdtmTq7dDKHP0pfQiF5ZS N6hg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:message-id:subject :reply-to:from:to:date:dkim-signature; bh=FZ2chJJ9TS+gl1ajAmYO1H26/CEwXR/7TO46XYWFBJw=; b=z8RjwB4Z1WxO1LYhiAjATyw3zVY4V7Wlb2Dx5BZM7kZuMhXhD7kYKlWPofIg4ziZzn sSjpFruZdQ8jl1DAD5l8xYW26quCfIn5DDQwGdEYgXvgGOCMGV28nJVEue57GKGoetM4 DqdQ9fmYQMwZ9xWEw1536rFHaipq7s/4uQLaMjieoXI1oEmZMJnW0XjWL5I6Cdxev7N3 DioG5XMQWHHIu+Df/YIdewJ/ub6a7SgsD+Y3aROGTCgCfJBZ6OE7BqF4bWsxi7ztGjlp +RX5xSEDAbfY/g5hVmirynFgJnXwemqkikTgZz8k1tPENNPz4FualHBQbv7ijbZ756mP lHeA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail header.b=ToUIpFZZ; spf=pass (google.com: domain of njbart-g/b1ySJe57IN+BqQ9rBEUg@public.gmane.org designates 185.70.40.141 as permitted sender) smtp.mailfrom=njbart-g/b1ySJe57IN+BqQ9rBEUg@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=date:to:from:reply-to:subject:message-id:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=FZ2chJJ9TS+gl1ajAmYO1H26/CEwXR/7TO46XYWFBJw=; b=GR2xCIMLKjhZZ7IqrSt8l9rQ3WyTme3N3ROfu+tynRL4IwxF4liqySwUptLOz0yFSx arDjgm+DeweQNw3O01ju3IT2KhuxZ5D1vQ0LOGJoW2k6udKtxaECujskqplxWZTz6HQD +znj7+X2XxUcCylDJ149eAL4RAbVnHDd2rksXv7HrIbdAHj6+/Usl3B19afg25ftlfjm hZirESV6VpYLwaTxWSsrXyC1LzStB6WFM+GeWjsg4rKIzYDzYp8J5OlZ09BlxBLBqeSd 7MT8s8ej7mqPLe9H2T67sS/Ia6OIJnnoQ/zq7ZkYA+J5l2uzJPidSNVV0jGjSYg7a65S tmRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:to:from:reply-to:subject:message-id :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=FZ2chJJ9TS+gl1ajAmYO1H26/CEwXR/7TO46XYWFBJw=; b=APD9FRu/WZUy7Z4SCq9YvIpESJNDqL84PP32tD/vX91DF46aZZm3yDToHl/yILkHj0 H5SUTKbhks+P+gztNqpiMkDQFdIHP1k5LcKerG8LQ/XaK2+2a2+ZOpbRo/L0L4cwft40 NPQnb1W30kt8P0sGVLqaoUo0GRGahN/xTIXvfPQaHdkM6AhBBNsVUFKnIst7nv1tZp6Z 2Qj7OPyWP4ADR9ayoyHu3aPrgXtir73akJBK77NCYLEHbbF/WpPB6tIRmrEfYbE+QSZJ icbpcUF/vQptxg//XMoHEfH45e/cr3F4o8uBU/pGwMjVzXZTBTo+Bewa31drrT6YVuL8 zmeA== X-Gm-Message-State: AOAM5305uCqQbScWtpJHKLPGPUyTrJ/lVvZZ0ubGwPVhLVbryThjN0my kQMoe5QNkfwPaHICTqodm2Q= X-Google-Smtp-Source: ABdhPJxc9f6tLBSn6vensSax74tRGC9MtWNn6LS3yscwrANSFd/vVSE7zWVU+lziu6oPEWBwovfT/Q== X-Received: by 2002:adf:cf0b:: with SMTP id o11mr14137020wrj.310.1616331888842; Sun, 21 Mar 2021 06:04:48 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a1c:bd84:: with SMTP id n126ls4796209wmf.2.canary-gmail; Sun, 21 Mar 2021 06:04:46 -0700 (PDT) X-Received: by 2002:a1c:6605:: with SMTP id a5mr12048399wmc.85.1616331886548; Sun, 21 Mar 2021 06:04:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616331886; cv=none; d=google.com; s=arc-20160816; b=cpBLebNCHqzvQoX56EnuJTHuHzyihTKM4erVtq0LyWXXaOga/IwmZXKJ+Ukb8VZy5t bhtaiwRO1ODcsHQWT8PaC+/IdKPuH9iwg75MaA+u1/f8sCnUlRYjgxqvrtsUf7WG0x44 y9zMmAlzL62b+EyYLnw97GBxvGMacB4fMF8Ch+bQxejZ/kBP7c8ezno/8vV0Z/BeoQUv 3tiDcqVtW1SAFbItdGVTsBLK9ZOT7JU7QDsc5ezZrhJfloQQlR+fs7+rZfsLlxn+u8+Z fI4VLJjVNVGMd/rMGNinSwRyMTANx+GQX6OY4577kmf58vkmpA2eFEXUctOArKvBGMWI 3HtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:subject:reply-to:from:to:dkim-signature :date; bh=9YQYgo/pcjB/AVUUVCHwQnUkv+a5/mJcE6k0qNSpEdU=; b=U5q6GxA09PZF3iH3AF21WV609DTLthN889NR7KulsEsTAYNNAfXhQs1AMxNjxpR04V BceZ8/xAk87vVHP0YXDL2XB/3Y4O1FakG58JSkc8DP2VGl1kSO0MzhJS1FKDyLiux1uD OnL8TZWEFWnsYgFc/Ol5Y6XD2EwU80DtkgHtgY+kZKZ6FKu0u02zEvQNBxwIDena1Lly 9jPbtZ0OH2yZt4wSuFSqHtoR3hluPNJCY18JZ1GE32TbCPdXEWogSoDE0Zp8+nVOGvCm dO9MC0aPLpF8ziPAKcX3fcdFNbFF3Ffenv9vliJ7balAe5e7ur6elDt8fsP+JEyV1sAc eXTw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail header.b=ToUIpFZZ; spf=pass (google.com: domain of njbart-g/b1ySJe57IN+BqQ9rBEUg@public.gmane.org designates 185.70.40.141 as permitted sender) smtp.mailfrom=njbart-g/b1ySJe57IN+BqQ9rBEUg@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Original-Received: from mail-40141.protonmail.ch (mail-40141.protonmail.ch. [185.70.40.141]) by gmr-mx.google.com with ESMTPS id z202si364935wmc.0.2021.03.21.06.04.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Mar 2021 06:04:46 -0700 (PDT) Received-SPF: pass (google.com: domain of njbart-g/b1ySJe57IN+BqQ9rBEUg@public.gmane.org designates 185.70.40.141 as permitted sender) client-ip=185.70.40.141; X-Original-Sender: njbart-g/b1ySJe57IN+BqQ9rBEUg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail header.b=ToUIpFZZ; spf=pass (google.com: domain of njbart-g/b1ySJe57IN+BqQ9rBEUg@public.gmane.org designates 185.70.40.141 as permitted sender) smtp.mailfrom=njbart-g/b1ySJe57IN+BqQ9rBEUg@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com X-Original-From: Nick Bart Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:27979 Archived-At: This is a multi-part message in MIME format. --b1_CaylN2YFRuTWudwXBnLiWOD4bG112KrIlsF4UH6agFY Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Trying to compile pandoc with icu support, on macOS (with latest pandoc dev= , and latest icu4c installed via homebrew), as described in https://pandoc.= org/installing.html, and using stack, the process errors out with number of= messages concerning text-icu (the last one being fatal): ``` text-icu > /private/var/folders/tr/2vzllytd31v6tb7hs_j7n2hm0000gs/T/stack-5= 9bd324a08690294/text-icu-0.7.0.1/cbits/text_icu.c:308:43: error: text-icu > error: use of undeclared identifier 'TRUE' text-icu > return u_strCompareIter(iter1, iter2, TRUE); text-icu > ^ text-icu > | text-icu > 308 | return u_strCompareIter(iter1, iter2, TRUE); text-icu > | ^ text-icu > 3 warnings and 1 error generated. text-icu > `gcc' failed in phase `C Compiler'. (Exit code: 1) ``` (all but identical to what has been reported at https://github.com/haskell/= text-icu/issues/49) The error(s) appear to be caused by recent changes to icu4c, which seems to= have dropped custom-defined TRUE and FALSE values (see https://github.com/= haskell/text-icu/issues/49). While there is an open pull request intended to fix this issue (https://git= hub.com/haskell/text-icu/pull/48), it seems not to be clear that text-icu h= as an active maintainer at the moment, and it=E2=80=99s unclear when that p= ull request will eventually make it into an official text-icu release. An unofficial fork of text-icu claims to have fixed the issue (https://gith= ub.com/WorldSEnder/text-icu/commit/7657227a7ca8ad13be86db5c190b806774a5fd6b= ). I wonder if anyone could indicate how to tweak the pandoc install command t= o include, for the time being, the WorldSEnder/text-icu fork rather than th= e official one - or whether there is anything else I could try to fix this = issue on the pandoc side. (I tried downgrading icu4c via homebrew, but appa= renty no formulae for earlier versions are available.) As an aside, while I fully understand the wish not having to include a huge= external C library by default, I feel that pandoc=E2=80=99s default sortin= g algorithm, currently based on =E2=80=9Ci;unicode-casemap=E2=80=9D (RFC 50= 51), is somewhat below par. In particular, it does not even comply with mai= nstream English-language rules as far accented characters are concerned. Th= e Chicago Manual of Style (17e, 2017, 16.67) unambiguously states: =E2=80= =9CWords beginning with or including accented letters are alphabetized as t= hough they were unaccented.=E2=80=9D One of their examples gives the sort o= rder =E2=80=9CUbeda =E2=80=93 =C3=9Cber =E2=80=93 Ubina=E2=80=9C. Without i= cu support, pandoc incorrectly sort this as =E2=80=9CUbeda =E2=80=93 Ubina = =E2=80=93 =C3=9Cber=E2=80=9C. --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/RvYr4eCyVE6BDciI-E4L0xJD_y60Nj2t6NJYdYcKeSmXBsMd6SZUZWu4Pm_p= PwgfdTrGVS1_afWf2R5fi7hhWMKjewo3yakQKUhPv6Sj5JQ%3D%40protonmail.com. --b1_CaylN2YFRuTWudwXBnLiWOD4bG112KrIlsF4UH6agFY Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Trying to compile pandoc with icu support, on macOS (with latest pando= c dev, and latest icu4c installed via homebrew), as described in https://pandoc.org/installing.html= , and using stack, the process errors out with number of messages concernin= g text-icu (the last one being fatal):

```
=
text-icu         &n= bsp;            = ;   > /private/var/folders/tr/2vzllytd31v6tb7hs_j7n2hm0000gs/T= /stack-59bd324a08690294/text-icu-0.7.0.1/cbits/text_icu.c:308:43: error:
text-icu         &= nbsp;           &nbs= p;   >      error: use of undeclared = identifier 'TRUE'
text-icu      = ;            &n= bsp;      >      =    return u_strCompareIter(iter1, iter2, TRUE);
tex= t-icu           &nbs= p;             = >            = ;            &n= bsp;            = ;          ^
tex= t-icu           &nbs= p;             = >     |       &nb= sp;            =    
text-icu     &nbs= p;            &= nbsp;      > 308 |     retu= rn u_strCompareIter(iter1, iter2, TRUE);
text-icu  =             &nb= sp;          >  &= nbsp;  |          &n= bsp;            = ;            &n= bsp;       ^
text-icu &nbs= p;            &= nbsp;          > 3 warnings= and 1 error generated.
text-icu     = ;            &n= bsp;       > `gcc' failed in phase `C Comp= iler'. (Exit code: 1)
```

(all b= ut identical to what has been reported at https://github.com/haskell/text-icu/issues/49)=

The error(s) appear to be caused by recent ch= anges to icu4c, which seems to have dropped custom-defined TRUE and FALSE v= alues (see https:= //github.com/haskell/text-icu/issues/49).

= While there is an open pull request intended to fix this issue (https://github.com/haskell/tex= t-icu/pull/48), it seems not to be clear that text-icu has an active ma= intainer at the moment, and it=E2=80=99s unclear when that pull request wil= l eventually make it into an official text-icu release.

<= /div>
An unofficial fork of text-icu claims to have fixed the issue (https://github.com/WorldSEnder/text-icu/commit/76572= 27a7ca8ad13be86db5c190b806774a5fd6b).

I wo= nder if anyone could indicate how to tweak the pandoc install command to in= clude, for the time being, the WorldSEnder/text-icu fork rather than the of= ficial one - or whether there is anything else I could try to fix this issu= e on the pandoc side. (I tried downgrading icu4c via homebrew, but apparent= y no formulae for earlier versions are available.)

=
As an aside, while I fully understand the wish not having to include a= huge external C library by default, I feel that pandoc=E2=80=99s default s= orting algorithm, currently based on =E2=80=9Ci;unicode-casemap=E2=80=9D (R= FC 5051), is somewhat below par. In particular, it does not even comply wit= h mainstream English-language rules as far accented characters are concerne= d. The Chicago Manual of Style (17e, 2017, 16.67) unambiguously states: =E2= =80=9CWords beginning with or including accented letters are alphabetized a= s though they were unaccented.=E2=80=9D One of their examples gives the sor= t order =E2=80=9CUbeda =E2=80=93 =C3=9Cber =E2=80=93 Ubina=E2=80=9C. Withou= t icu support, pandoc incorrectly sort this as =E2=80=9CUbeda =E2=80=93 Ubi= na =E2=80=93 =C3=9Cber=E2=80=9C.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msg= id/pandoc-discuss/RvYr4eCyVE6BDciI-E4L0xJD_y60Nj2t6NJYdYcKeSmXBsMd6SZUZWu4P= m_pPwgfdTrGVS1_afWf2R5fi7hhWMKjewo3yakQKUhPv6Sj5JQ%3D%40protonmail.com.=
--b1_CaylN2YFRuTWudwXBnLiWOD4bG112KrIlsF4UH6agFY--