From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/27987 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Error compiling with icu support / possible workaround? Date: Sun, 21 Mar 2021 23:08:44 -0700 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28182"; mail-complaints-to="usenet@ciao.gmane.io" To: 'Nick Bart' via pandoc-discuss , "pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org" Original-X-From: pandoc-discuss+bncBCJZJHG45QDBB6PI4CBAMGQENJZTYQI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Mar 22 07:09:00 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-io1-f59.google.com ([209.85.166.59]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lODkJ-0007BL-PR for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 22 Mar 2021 07:08:59 +0100 Original-Received: by mail-io1-f59.google.com with SMTP id c4sf33305275ioq.15 for ; Sun, 21 Mar 2021 23:08:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1616393338; cv=pass; d=google.com; s=arc-20160816; b=D6Q1O8fIQ08LR6Mc5WtedGLS+uVjm289YqLSVEXcj+RiIWub7DvlnEGdF5tcz+KlFG AVxGUxgiwojEwJMEQ2sQdPM1Tsx2ScodfFL3Zb0C3ancCK0ghKzcFmiZdnnBDgzjaI64 mQdxxTB8KdmcyJtY0GiWCxrNBWoVnM2AjjpYMUrhqs09rVcRNSxpkFJRpw13yhJVh85l UM/cRlcSX0kmZ2U38mwcxvv9QlfokAsRIeJJMSUQovC9FhxGz5oQzipjP6l2rIc/UZ7d 4tK/V3qzlUyhFvN2amQDKhvbvx0C2b01S5J3Vg5HRP6xG/uiXAL0kSui40l8BWqhQzjD kL/A== 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:reply-to:content-transfer-encoding :mime-version:message-id:date:references:in-reply-to:subject:to:from :sender:dkim-signature; bh=fe6G6if9hARJPs9OWg2gB7dfgIfM0XNnIDkogEa0zKM=; b=Cp+idCgSF+Un8fpr4dko3qY7uUD6IlXAjG//7gT5XaRDcRiCr4YcIjMsdSdBp7satF TMMYWVxERE4wn0B32VzMc/Ei/rmMLQBKzM9MksYnGHfCcx2KDx5Jefb7P00eAuqnzabp XpItDKOWNgmWk14R9mSVmonTFtEtu/J9RrHgTzt8rCrjNxkHJRv0dKD5NUDW7ZCNKQ1M Yo5HFFWYannSOHjHC1vDoIeg3tPeQI5QdgbZHnrcsTNM2GJBdJrv2FzNQVu10zXSeF9A vVHwbuDCyg7hOvZnvCuEmKaSrI3uL+iacR+MFJW/R1l9YcpB65oMxzzulm4UXKqIELFv FztA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=OKLaeDvB; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::62b as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=fe6G6if9hARJPs9OWg2gB7dfgIfM0XNnIDkogEa0zKM=; b=dWmBoyIrzgs6Qz+JEKvLNEkP/B/giCPI6M638FnFr8UkFTMm0qYoDq28LxYCsFIfIr z88BEQpOC8jJ/6wbLhG7gb52yuQ0OR0twaK3iCxQQPv84SCHLMRdgtQLIZk0E+G+YOiC hFT3Hs278DT1ciSSfwYIRKL+WxqP9IHIzDp8ANmN0A5k6r+wpg7rLyXQa1JbfU6LrcY4 9Up78F6IzPZk+/q20Wl6S9tFj0OTtzv6B7yVTcf3Oda/2O8cWiutZPOHUcfTnS5ClLwe CjweoKeDAuQLGX2zDsUcxa5CIWIXreysywTh0HHafKZ9pknAkzSz6nHTsuWw5Um7qxPr hhNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:content-transfer-encoding :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=fe6G6if9hARJPs9OWg2gB7dfgIfM0XNnIDkogEa0zKM=; b=BotvvAmOCM7XVZFhPFPLkU7RAz4wNexAt0nXXOMjsdSag7g4MKXAmMrMjVCzvZMuFK f5aSpXJrX9qW4sq6rDqmCAnNxxT+khd7P/cUio7x94GbhunOnZZZyTt8BHiF/2T54wRk ibF6wGmPk35KNkjqELY/oyabGbvVMSPXDDOnrfs7etqCOvlB68+rXK7nA6JkxQzxEXNW Avut+QQrntJ89JeMcDM31bBnROh8E1s05RG7ZX15InBzj9yPOPcqxZ8DzfV7zWx5Swdl 7WadKuFva2te1QtP0tY/Ig3mphtUC+yUKd6h4pEtVy/TToWRJt1rRdUk4Ip7DwcadBia Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530wG6xIaeDoeEl42vODEdcreqD8vlH0BRB0HA80gckSngfoobm3 MeqC+riUKzxUDpjxMQZ9TcE= X-Google-Smtp-Source: ABdhPJwJkRprM96YuxmMU4Ib9PIsmaufmusNF/qVS8g7BKRspnxAGHu+qMMCcZlgasZqQNw/+5FPSA== X-Received: by 2002:a05:6e02:128e:: with SMTP id y14mr10010588ilq.239.1616393338862; Sun, 21 Mar 2021 23:08:58 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a92:cda8:: with SMTP id g8ls2139766ild.10.gmail; Sun, 21 Mar 2021 23:08:57 -0700 (PDT) X-Received: by 2002:a05:6e02:1a65:: with SMTP id w5mr4920554ilv.5.1616393337611; Sun, 21 Mar 2021 23:08:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616393337; cv=none; d=google.com; s=arc-20160816; b=aKF8bJx0Ms6cZZrOgOmmdDkTp4GrCjhCWTfvy0262q/akni44pHOiv5O+spgu+5zl0 sYZdCHOCa+yglpp6XzUPdXYGexLMDgdAV9OJS0TA4hw7VOcU7eaWAHcrvtIWdHOY0ISJ j9dtKLx/TqXOkOKYouZITlqv1Zg8IV+oYwi7/xFXXeHIL2iCi4libf76CBaX+kyfFznk +/lrV+dfGHhLxDAmjBUXSDOl/CBvBMu2OHceB6HP/BcISJssc854g8W4YYtGwaG/4cHh q/DaJnQzT6BLVbOMp4FjDqhsOdiANnsbwsVAIwriva8Hv5OMNhWEd8VN3pRYtpklkcmc p+gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:dkim-signature; bh=4A3qsej3NuDM9VBOTlAZOmvhrdTWXxtVsVNsUPkYqkU=; b=JLq2R7DITyolyMlSa42covWfGKS5jvuA5Qd7v/N3Ps0L3EUGL76VyUtVKFzE+lVspr 72HySMaDgnkAI6THubgU8RzK0IqvHJI3QVEXDilBhiFOQfz4+ms+z7NLU0gPuPp/yQg9 zhwvvcFkdhZPcfNiygdx3YwcPCimGXXbExVaRwhmbqLRr8LreoGgg4Bm1Vta4n/vZln+ QHbWjQ1t2hc5TMWFkDpz9uXikHWhs3h2IC1rr2B32ZvAZAZ2nX7YSdNkaBCArVJ1izCz oCaCNDJ5zfNrtPxttRIUhv8J6EnqUl56mse+j5tUQouF0mSduP0YXdsfcJYsT7ChDBpf rwHg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=OKLaeDvB; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::62b as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com. [2607:f8b0:4864:20::62b]) by gmr-mx.google.com with ESMTPS id y8si737094iom.1.2021.03.21.23.08.57 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 21 Mar 2021 23:08:57 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::62b as permitted sender) client-ip=2607:f8b0:4864:20::62b; Original-Received: by mail-pl1-x62b.google.com with SMTP id o2so5982881plg.1 for ; Sun, 21 Mar 2021 23:08:57 -0700 (PDT) X-Received: by 2002:a17:902:7612:b029:e5:f0dd:8667 with SMTP id k18-20020a1709027612b02900e5f0dd8667mr25509559pll.59.1616393336541; Sun, 21 Mar 2021 23:08:56 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id a7sm12218237pfo.105.2021.03.21.23.08.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Mar 2021 23:08:56 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 3C58CA182; Mon, 22 Mar 2021 02:08:45 -0400 (EDT) In-Reply-To: X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=OKLaeDvB; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::62b as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org 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:27987 Archived-At: On second thought, I'd be reluctant to depend for a release on an unreleased fork. The last release of text-icu is 2015! The fork is quite old too. It would be worth seeing if someone in the Haskell world could take over this library, which seems pretty important. Posting on the Haskell reddit might be one way to get attention to the issue. John MacFarlane writes: > Further note on this: we should compile with icu support in > our binary releases -- at least on macos and linux, where I > know how to do it. Maybe someone can help me figure out > how to do it on Windows. > > "'Nick Bart' via pandoc-discuss" > writes: > >> Trying to compile pandoc with icu support, on macOS (with latest pandoc = dev, and latest icu4c installed via homebrew), as described in https://pand= oc.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/stac= k-59bd324a08690294/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/haske= ll/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.c= om/haskell/text-icu/issues/49). >> >> While there is an open pull request intended to fix this issue (https://= github.com/haskell/text-icu/pull/48), it seems not to be clear that text-ic= u has an active maintainer at the moment, and it=E2=80=99s unclear when tha= t pull request will eventually make it into an official text-icu release. >> >> An unofficial fork of text-icu claims to have fixed the issue (https://g= ithub.com/WorldSEnder/text-icu/commit/7657227a7ca8ad13be86db5c190b806774a5f= d6b). >> >> I wonder if anyone could indicate how to tweak the pandoc install comman= d to include, for the time being, the WorldSEnder/text-icu fork rather than= the official one - or whether there is anything else I could try to fix th= is issue on the pandoc side. (I tried downgrading icu4c via homebrew, but a= pparenty no formulae for earlier versions are available.) >> >> As an aside, while I fully understand the wish not having to include a h= uge external C library by default, I feel that pandoc=E2=80=99s default sor= ting algorithm, currently based on =E2=80=9Ci;unicode-casemap=E2=80=9D (RFC= 5051), is somewhat below par. In particular, it does not even comply with = mainstream English-language rules as far accented characters are concerned.= 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. >> >> --=20 >> You received this message because you are subscribed to the Google Group= s "pandoc-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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. --=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/m2wntzoh3n.fsf%40MacBook-Pro.hsd1.ca.comcast.net.