From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Matt Wette Newsgroups: gmane.lisp.guile.devel,gmane.lisp.guile.user Subject: Re: Website translations with Haunt Date: Sun, 10 Dec 2017 14:35:16 -0800 Message-ID: References: <20171209180619.GA10254@floriannotebook.localdomain> <337C4CEB-E242-4D3B-B110-E19B485DA0AB@gmail.com> <20171210192143.GA1796@floriannotebook.localdomain> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_88ECC9FF-F2D1-44C0-A632-8C99AE88DE15" X-Trace: blaine.gmane.org 1512945343 16396 195.159.176.226 (10 Dec 2017 22:35:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 10 Dec 2017 22:35:43 +0000 (UTC) Cc: Guile User Mailing List , guile-devel To: "pelzflorian (Florian Pelz)" Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Dec 10 23:35:39 2017 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOACB-00046W-94 for guile-devel@m.gmane.org; Sun, 10 Dec 2017 23:35:39 +0100 Original-Received: from localhost ([::1]:50020 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOACI-0004VM-KT for guile-devel@m.gmane.org; Sun, 10 Dec 2017 17:35:46 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50026) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOAC3-0004UP-5Q for guile-devel@gnu.org; Sun, 10 Dec 2017 17:35:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eOAC1-000211-Pp for guile-devel@gnu.org; Sun, 10 Dec 2017 17:35:31 -0500 Original-Received: from mail-pf0-x22c.google.com ([2607:f8b0:400e:c00::22c]:43341) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eOABt-0001sL-6u; Sun, 10 Dec 2017 17:35:21 -0500 Original-Received: by mail-pf0-x22c.google.com with SMTP id e3so10132481pfi.10; Sun, 10 Dec 2017 14:35:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=+1lI/TlJ+HflEe2j3FyZjLEBitk1RSXYeheP2vDOcas=; b=pUJaOORQTrNVGeFPz+5xK48obqPwSRjHyYvf5K1/sN+fuOZOJ5HQJKhe7P5J5/tde8 MungUCQxDfFr5EnpJIMG9MY/j/nXYtbf1Xrgj87C6C/MW1WZpiY3rC8ynLCM4UsRYvvU uSMueESWbd8xVk2eX+D558O3MsyCVqdREqMQzCNg92XOb0z95UJzzqD6BF4CX85CVKy/ ur0PUqor1GrwZig2R+Le3gUFrAlM0303q/Nn41ZsBF9BDEjopw7PWfgiWKvhY1gXdwy8 DpWT+tCCO4pM7FLDU7OJJjv6u+h9cJ0v3xpcMfi2v5QqXk8PJgBNMhhs6u620LcyLs/D vJUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=+1lI/TlJ+HflEe2j3FyZjLEBitk1RSXYeheP2vDOcas=; b=kXoVgmPNrId6tDT23zPtITG0pwbQauCeoBJsWRYxwRkDf8ckgVhmnKfBQtUS9LUM4M yjvnHrENjg3dLpgZb8ZGOVjAUXvrCZincOGVItSyLzjW04JD0tXBZi0jlcVB1qX2magb zg8pval+4bCZlEordAPYcp3rwnJXnOYXJaT/kRJQFIVO/x5ZJmar+LoL0D+qVLvOtp7I GerzPD/owHfsG30Te+/Ta5UoKJeSzBfNi491xlR54JTFLi4YbsAPiPPThs/I9vfmVK9B BiKVfGTdue/w86dtmzTeyzNbXyeYsT1zn3EeFWdwaKUR62EFmwgH/hBzFb06dZRqd7kE lKMg== X-Gm-Message-State: AJaThX5g0NGcImwMYlUOjBAsUo4fUL5JecQKReR/EfUcg99BqLm5QxxK xfBkAtIa63d2naVrXPKv+Gc= X-Google-Smtp-Source: AGs4zMaL6YdKJ+4mU9dl1ct1vYz/4Kj7J16hrFM4+YNBWiPaPK7laZD3g8C7MP1Mkq+5oRyAAnHOAw== X-Received: by 10.99.0.86 with SMTP id 83mr36438418pga.326.1512945319811; Sun, 10 Dec 2017 14:35:19 -0800 (PST) Original-Received: from nautilus.championbroadband.com (216-165-229-229.championbroadband.com. [216.165.229.229]) by smtp.gmail.com with ESMTPSA id i125sm22064279pfe.151.2017.12.10.14.35.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Dec 2017 14:35:19 -0800 (PST) In-Reply-To: <20171210192143.GA1796@floriannotebook.localdomain> X-Mailer: Apple Mail (2.3273) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::22c X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.org gmane.lisp.guile.devel:19406 gmane.lisp.guile.user:14335 Archived-At: --Apple-Mail=_88ECC9FF-F2D1-44C0-A632-8C99AE88DE15 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Dec 10, 2017, at 11:21 AM, pelzflorian (Florian Pelz) = wrote: >=20 > On Sun, Dec 10, 2017 at 07:22:55AM -0800, Matt Wette wrote: >>=20 > Thank you. I=E2=80=99m sorry to say that it did not work. >=20 > Actually it is not the =E2=80=9Cstruct po_error_handler=E2=80=9D but = the > =E2=80=9Cstruct po_xerror_handler=E2=80=9D which I need. I believe = the =E2=80=9Cstruct > po_error_handler=E2=80=9D is not used anymore in current Gettext but I = am not > sure. varargs are not needed for =E2=80=9Cstruct po_xerror_handler=E2=80= =9D (even > though support for them is desirable in general). >=20 > Hmm I tried mostly the same as you propose before for the xerror > handler and it did not work: fh-object-set! apparently did not have > any effect, i.e. a subsequent fh-object-ref returned 0 and on error > the callback handler function was called at address 0, causing a > SIGSEGV. >=20 > Either way, I tried your code for =E2=80=9Cstruct po_error_handler=E2=80= =9D and put it > in my dot.ffi to see if it works. >=20 OK. I will look at this. > By the way, what I forgot to mention is that I needed to replace >=20 > #include >=20 > in the gettext-po.h header file by >=20 > typedef long size_t; >=20 > otherwise =E2=80=9Cguild compile-ffi gettext-po.ffi=E2=80=9D would = fail with the error > message >=20 > ffi-help: WARNING: the FFI helper is experimental > (unknown):1: not found: "gnu/stubs-32.h" > compile-ffi: parse failed >=20 The FH compiler executed gcc to find all the hidden include directories. = If you don't have gcc in your path (you didn't seem to have guile in your path) then it won't = find those directories. You can add `-I path-to-gcc-inc-dirs' arg to your path or make make sure = "gcc" is in your path. Matt --Apple-Mail=_88ECC9FF-F2D1-44C0-A632-8C99AE88DE15 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
On Dec 10, 2017, at 11:21 AM, pelzflorian (Florian Pelz) = <pelzflorian@pelzflorian.de> wrote:

On Sun, Dec 10, = 2017 at 07:22:55AM -0800, Matt Wette wrote:

Thank you.  I=E2=80=99m sorry to say = that it did not work.

Actually it is not the =E2=80=9Cstruct = po_error_handler=E2=80=9D but the
=E2=80=9Cstruct = po_xerror_handler=E2=80=9D which I need.  I believe the = =E2=80=9Cstruct
po_error_handler=E2=80= =9D is not used anymore in current Gettext but I am not
sure.  varargs are not needed for =E2=80=9Cst= ruct po_xerror_handler=E2=80=9D (even
though support for = them is desirable in general).

Hmm I tried mostly the same as you propose = before for the xerror
handler and it did = not work: fh-object-set! apparently did not have
any effect, i.e. a subsequent fh-object-ref = returned 0 and on error
the callback = handler function was called at address 0, causing a
SIGSEGV.

Either way, I tried your code for =E2=80=9Cstruct = po_error_handler=E2=80=9D and put it
in my dot.ffi to = see if it works.


OK.  I = will look at this.


By the way, what I = forgot to mention is that I needed to replace

#include <stdlib.h>

in the gettext-po.h header file = by

typedef long = size_t;

otherwise =E2=80=9Cgu= ild compile-ffi gettext-po.ffi=E2=80=9D would fail with the = error
message

ffi-help: WARNING: the FFI helper is = experimental
(unknown):1: not found: = "gnu/stubs-32.h"
compile-ffi: parse = failed


The = FH compiler executed gcc to find all the hidden include directories. =  If you don't have gcc
in your path (you didn't seem to = have guile in your path) then it won't find those = directories.
You can add `-I path-to-gcc-inc-dirs' arg to your = path or make make sure "gcc" is in your path.

Matt


= --Apple-Mail=_88ECC9FF-F2D1-44C0-A632-8C99AE88DE15--