From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/27985 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 22:59:26 -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="28983"; mail-complaints-to="usenet@ciao.gmane.io" To: 'Nick Bart' via pandoc-discuss , "pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org" Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBS7E4CBAMGQE43WX7WY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Mar 22 06:59:41 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-vk1-f185.google.com ([209.85.221.185]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lODbJ-0007T1-JM for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 22 Mar 2021 06:59:41 +0100 Original-Received: by mail-vk1-f185.google.com with SMTP id i65sf15321089vkg.19 for ; Sun, 21 Mar 2021 22:59:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1616392780; cv=pass; d=google.com; s=arc-20160816; b=uHqMZqq/78+L4/PeK8e5Te9OTz2diHyvdoXa/2HtSTGv0iAZa4DQ8x2nUTUBdq8VtA VwapGMX0lzjSYew1zXIpPX4PzIwQx+5m8JsEPKnCWhfXRp7sOZHZ3pC/j9wzBjONBDrr krxg1KuYEq0MH/SMUfRvbKupPnWm/gnBoBj87WBObAZbpJQeNorpYEaniOYXhkz+Aeez 09N+k/kMbijlhinLCkaIje8xF04auBkeY3pXcq18dgAsTrvl5s/aUw+9FkvpixcUHPX6 r3mrF7+CdkxYjNXa5M8vmpnfxYaENvtbYr1V+x8Z/EI9KexY25Wbx+6JnpNjFC/dowDW 1iWQ== 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=NMqi0u+rZqeTOxrnNIIs79YE8NdZ0E349P4k4yirl5A=; b=VT7ZGzn4W0w82cmn7C1KaQwDiId4Hw4UcOiUszKZt2PSrx2oCFmWr+LW7nfGnOBSZI i1kvQ+kTIAg/7m9H2HqlV6pNYEWx/Ic3Y0W4pipnIJ0JGWQzXT4EfQHBLaBvkX+lDnI9 IBxM2HlXo+m7e5XUdW6OSKjkDOI1ETUJj4IO+apYivGEN2UylH0nK94TMvzMp1orCfZP CvG/pngxArVCv5XwS9QgHF49CfwXmdBrTa5AJtYlHQyoP+9xY6L86tqrMvYI33XfZlA3 z+wDxXsiD9IPmeqzbBzrZ8l+ZBqe6m6YUYC1n3kKhqwZ4TGintV6UxLOQhWsdyMPMv+7 GKUQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=Wvws2kFy; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102a 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=NMqi0u+rZqeTOxrnNIIs79YE8NdZ0E349P4k4yirl5A=; b=amD3+V1B5HN56KPlGcUKDNX9bjPA2JLnSgPKc403yoaSwYMQnLUxU15QPftjubI/Oq O1LN3O62L/SdJUbaWp3pnlRcUhaF0wzUkDRw/DniEem/Fw/Id5Dv9MPQTHmBDnh2odf6 d4yX9TuxPMLkbRqIxO1obxGImy3uV97tml44TD+KsCk8vh84DzvQjHzkvTZRuVivY4Yd 6uSO0eNUS9yirv4TTp87tGzKS3304gOujNaB9B983o8hUyc3b7OknC8S4dKzLLN9b9Vy khS/nISuEPTsGCrR9TNnUwzOiOMAUjOQTkH8j+vO93AZlTiZZMg8uWMeJNf0vSduZc1/ 5Nuw== 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=NMqi0u+rZqeTOxrnNIIs79YE8NdZ0E349P4k4yirl5A=; b=OdjVKNlaFbtPxzJIDn4HCoc2SJK0fFeGqG+N4kf4O9RFP3z3DF4KKHj2AI7qdX2r66 EX3Lk8rxrNKjLSO/jsz97vcaSgtqBOfXX+IpBbTrlfMS3L06Pcl/HjmHR8JZsYxP/Geu iL6wVjHXV70np4UdeR98+HrrnPJ2N3UXevwiBtca5ifU5rikD0t8Mwi7Va8RQbPR94X5 v1rruNn4zoB+gIsvVNTHFEC1JVRzCnwayxceWwshngwcgnFspiKxCb4ugcdoPI7k19OI h4UluPTu8vREZEKmyzsAdDMK3BsT7sa9bSzN6XJAyuGeQ7IfmaagemoiekMRrVMuLoaV Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM5313NWej5nxbxJ9fX2nQoDXE3OgLidTGQzC/3rpiq65HEZs03u9r nv4X5rmMlcwFS1VULpZUQLs= X-Google-Smtp-Source: ABdhPJwal3df1Ef6s6NmLahfGIwBhAGGDFUT2FGnD0vXA0WcQklJJfEPhUPTQpOKPrZAmU48Sj5Z9Q== X-Received: by 2002:a67:fe47:: with SMTP id m7mr7630360vsr.57.1616392780740; Sun, 21 Mar 2021 22:59:40 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6102:319b:: with SMTP id c27ls1307122vsh.6.gmail; Sun, 21 Mar 2021 22:59:39 -0700 (PDT) X-Received: by 2002:a05:6102:2373:: with SMTP id o19mr7981315vsa.6.1616392779264; Sun, 21 Mar 2021 22:59:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616392779; cv=none; d=google.com; s=arc-20160816; b=K4x3ZbJlt5CkMdZV4KsUG9VTLZ3QZIbZU559FPhBATfwhvQkPRBfAlXJRxbKihJ1ah SnZnCOXEip8w5RP4kzHZsXrIpkx2GmSrLTXZjWWOVJoy6eVS+Mkw3JrDZ7Lt3BAY6JNx bNFsbUUc7fdg2V/KymfmPu0Up0K+pgiUN6KKDdUudW4tUrZma+z5SNcdg4oNjWVXTVPM G5yo4V1xNl3X5D0nxtDnglCSOMwu/bOhDtdl6zhBK/Cu1ajyuPm2FSzuW3X+7VP0SNJC +/ZJJftJDdVpYNzLOk83RvoSUKEv2n0qFGUQe2uXb1O7xRd13q7RwJ/TwbM4KE/rRZ+H cPbQ== 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=iYCmQGtC0rfT8Hncol6eDwcGMDPyt+ZDtjN/3PBH6fM=; b=aC6bW1lNwSRHhxpb3RZIB413WsVG8Jsu8OWzb1gYM6bjl/r2RubBYQt8ovHAIGoCrt gq2K36pSE1eDJdHhAOgSzCGRjLP+4+9w7szZM+EtMMi1OgZ3+15f9E9HqMo0gd5ZmINc bLtbbsOOGmMR7kwlYymwQkT2c27DgHKKjT89EYG+8fh0lUG5Swf2QbFTDLC32vBJawCD sCUDnw6RlAiknmBTrc78hpzv+iqTnWgnzLTGy44JlUSLZlZyAgkFC77foGYSp44eeC4E oHCU0IyL1CTJAFVNRvL+Jlfb2GrK/K6t3UoctBX+v8Km2IDDzuKh4t0bosAOcO3W1zlx d4zA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=Wvws2kFy; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102a as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com. [2607:f8b0:4864:20::102a]) by gmr-mx.google.com with ESMTPS id p23si688592vkm.1.2021.03.21.22.59.39 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 21 Mar 2021 22:59:39 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102a as permitted sender) client-ip=2607:f8b0:4864:20::102a; Original-Received: by mail-pj1-x102a.google.com with SMTP id ha17so7816410pjb.2 for ; Sun, 21 Mar 2021 22:59:39 -0700 (PDT) X-Received: by 2002:a17:90a:4498:: with SMTP id t24mr11448558pjg.78.1616392777986; Sun, 21 Mar 2021 22:59:37 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id fv9sm14071673pjb.23.2021.03.21.22.59.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Mar 2021 22:59:37 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 533C6A182; Mon, 22 Mar 2021 01:59:26 -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=Wvws2kFy; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102a 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:27985 Archived-At: 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 d= ev, and latest icu4c installed via homebrew), as described in https://pando= c.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= -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/haskel= l/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.co= m/haskell/text-icu/issues/49). > > While there is an open pull request intended to fix this issue (https://g= ithub.com/haskell/text-icu/pull/48), it seems not to be clear that text-icu= has an active maintainer at the moment, and it=E2=80=99s unclear when that= 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://gi= thub.com/WorldSEnder/text-icu/commit/7657227a7ca8ad13be86db5c190b806774a5fd= 6b). > > I wonder if anyone could indicate how to tweak the pandoc install command= 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 thi= s issue on the pandoc side. (I tried downgrading icu4c via homebrew, but ap= parenty no formulae for earlier versions are available.) > > As an aside, while I fully understand the wish not having to include a hu= ge external C library by default, I feel that pandoc=E2=80=99s default sort= ing 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 m= ainstream 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 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= email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/RvYr4eCyVE6BDciI-E4L0xJD_y60Nj2t6NJYdYcKeSmXBsMd6SZUZWu4Pm= _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/m235wnpw3l.fsf%40MacBook-Pro.hsd1.ca.comcast.net.