From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24809 invoked by alias); 26 Jan 2017 19:45:09 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 40421 Received: (qmail 17059 invoked from network); 26 Jan 2017 19:45:09 -0000 X-Qmail-Scanner-Diagnostics: from mail.cs.uni-magdeburg.de by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(141.44.21.48):SA:0(-3.2/5.0):. Processed in 5.585219 secs); 26 Jan 2017 19:45:09 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-3.2 required=5.0 tests=RP_MATCHES_RCVD autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: elkner@cs.uni-magdeburg.de X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at cs.uni-magdeburg.de does not designate permitted sender hosts) Date: Thu, 26 Jan 2017 20:30:30 +0100 From: Jens Elkner To: zsh-workers@zsh.org Subject: Re: UTF-8 locales on BSDs do not support collation correctly Message-ID: <20170126193030.GA7787@trex.cs.ovgu.de> Mail-Followup-To: zsh-workers@zsh.org References: <20170126175717.0b5c87c1@pwslap01u.europe.root.pri> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170126175717.0b5c87c1@pwslap01u.europe.root.pri> User-Agent: Mutt/1.5.21 (2010-09-15) X-Milter: milter4j - Mail Filter for Java 1.1.4 (b767) X-Milter: ClamAV 0.98.1-jel on mail - Status: Clean X-RcptTo: zsh-workers@zsh.org On Thu, Jan 26, 2017 at 05:57:17PM +0000, Peter Stephenson wrote: > On Wed, 25 Jan 2017 19:02:29 +0100 > Mikael Magnusson wrote: > > It works fine on OpenBSD. However, I had to revert 40333 for it to > > compile there. Adding some extra CCs since the mailing list probably > > still doesn't work. > > > > gmake[2]: Entering directory '/home/mikachu/code/zsh/Src' > > gcc -c -I. -I../Src -I../Src -I../Src/Zle -I. -DHAVE_CONFIG_H -Wall > > -Wmissing-prototypes -O2 -o watch.o watch.c > > watch.c: In function 'readwtab': > > watch.c:488: warning: implicit declaration of function 'setutent' > > watch.c:489: warning: implicit declaration of function 'getutent' > > watch.c:489: warning: assignment makes pointer from integer without a cast > > watch.c:512: warning: implicit declaration of function 'endutent' > >... > > watch.c:(.text+0x43): undefined reference to `setutent' > > watch.c:(.text+0x48): undefined reference to `getutent' > > watch.c:(.text+0x73): undefined reference to `getutent' > > watch.c:(.text+0x83): undefined reference to `endutent' > > This is obscure: the preprocessor appears to be both replacing and not > replacing getutent and setutent. I wonder if they are already > definitions that are being stomped on? Or the code should go > through a different branch entirely? Ohh, FreeBSD/NetBSD/Dragonfly seem to have it - OpenBSD surprisingly not. So old code similar to http://bxr.su/OpenBSD/usr.bin/w/w.c is probably required than. Have fun, jel. -- Otto-von-Guericke University http://www.cs.uni-magdeburg.de/ Department of Computer Science Geb. 29 R 027, Universitaetsplatz 2 39106 Magdeburg, Germany Tel: +49 391 67 52768