From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3215 2.0.0.0/16 X-Spam-Status: No, score=-3.7 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,SPF_PASS, T_DKIM_INVALID shortcircuit=no autolearn=ham autolearn_force=no version=3.4.1 Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 570091F404 for ; Sat, 11 Aug 2018 08:43:46 +0000 (UTC) Received: from localhost ([::1]:59304 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1foPUr-0007wa-Jk for normalperson@yhbt.net; Sat, 11 Aug 2018 04:43:41 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50710) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1foLZI-0007E2-Cn for bug-gnulib@gnu.org; Sat, 11 Aug 2018 00:32:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1foLZE-0006A8-6R for bug-gnulib@gnu.org; Sat, 11 Aug 2018 00:32:00 -0400 Received: from zap.org.au ([129.94.172.224]:45562 helo=mail.zap.org.au) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1foLZD-00064H-Io for bug-gnulib@gnu.org; Sat, 11 Aug 2018 00:31:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=simple/simple; d=zap.org.au; s=dkim2; h=Sender:In-Reply-To:Content-Type:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Cc:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=uc9+k6uGFUlG3LE2TYSKz8oh3Fh0Kde9Rta1vveJ2mc=; b=WfD4Xx7KIOmWBn/N1ipbx5d9Z2 41ZSom/H+taHXIpmrtfz2jmdGyDb4zUgbm4V8SFcmJfREWSqNyNXj+H6B/2KWsU1AqKgpjsF+ZARi nYGKCqy6RSmBMbciB5ETMBEuTgau6U6GYuVFa5Bu+Z1pDYFYfrikKsv7ZPQKBhxTVu2RG2RIOkFiP N5SQ8E4A5PWW6yYzbIV0xJG2A8KPR0+UgqwX+E+ew8rHPJc5Ui4UsKC2XjKVdWF6z+MKzDP/O8AGV ktMUHTZkWAs0ok1OulkHjeRcAnIdpsdnVgVQGbXRULKrXXnLO+HnN3/+0xUOJsdoyF/cAGk6/jlyK dutC4njQ==; Received: from john by mail.zap.org.au with local (Exim 4.89) (envelope-from ) id 1foLZ8-0002xr-Uf for bug-gnulib@gnu.org; Sat, 11 Aug 2018 14:31:50 +1000 Date: Sat, 11 Aug 2018 14:31:50 +1000 From: John Zaitseff To: Gnulib discussion Subject: Re: Adding strfmon(3) to Gnulib? Message-ID: <20180811043150.eka5xwny6ebf2o4y@zap.org.au> References: <20180723091714.4hoqu5op7puxchm3@zap.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180723091714.4hoqu5op7puxchm3@zap.org.au> User-Agent: NeoMutt/20170113 (1.7.2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 129.94.172.224 X-Mailman-Approved-At: Sat, 11 Aug 2018 04:43:36 -0400 X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" Hi, all, I wrote back on 23rd July: > [...] Is it worth adding strfmon(3) and possibly strfmon_l(3) for > those systems that do not have it? I'm thinking primarily > OpenBSD, even in the latest version. This OS does not have > either. and > [...] If the Gnulib maintainers are agreeable, I'll try setting > aside some time in the next couple of weeks to come up with a > suitable patch [...] Just to let you know that I've started work on replacement strfmon and strfmon_l functions. My current thinking, before I get too far into the task, is to: 1. Rename the monetary module to monetary-h and extend it to provide an actual replacement for , a la . 2. Create a strfmon module to provide the strfmon() function. This will depend on monetary-h. I will almost certainly implement the function using GNU C Library (glibc) source code. I'll look at how the glob, getopt-gnu and getopt-posix modules do it... or should I be looking at other "model" modules? 3. Rework the existing strfmon_l module to provide a replacement strfmon_l() function instead of just working around bugs in old versions of glibc. Again, I'll be using current glibc code. 4. Create a replacement monetary module that depends on monetary-h, strfmon and strfmon_l, with a message that monetary is now obsolete and that programmers should use strfmon and/or strfmon_l. 5. Develop appropriate tests for all of the above. 6. Update documentation in doc/posix-headers and doc/posix-functions to suit. 7. Add appropriate lines into MODULES.html.sh and config/srclist.txt. Anything major I've forgotten? And yes, I've read Chapter 4 of the GNU Gnulib manual--in fact, I've read the whole document based on the current git sources :-) I expect the patches will need to go through a few iterations on this mailing list before being merged, of course. I've also signed the copyright assignment papers and sent those off. Yours truly, John Zaitseff -- John Zaitseff ,--_|\ The ZAP Group Phone: +61 2 9643 7737 / \ Sydney, Australia E-mail: J.Zaitseff@zap.org.au \_,--._* http://www.zap.org.au/ v