zsh-workers
 help / color / mirror / code / Atom feed
From: Jens Elkner <jel+zsh@cs.uni-magdeburg.de>
To: zsh-workers@zsh.org
Subject: Re: UTF-8 locales on BSDs do not support collation correctly
Date: Thu, 26 Jan 2017 20:30:30 +0100	[thread overview]
Message-ID: <20170126193030.GA7787@trex.cs.ovgu.de> (raw)
In-Reply-To: <20170126175717.0b5c87c1@pwslap01u.europe.root.pri>

On Thu, Jan 26, 2017 at 05:57:17PM +0000, Peter Stephenson wrote:
> On Wed, 25 Jan 2017 19:02:29 +0100
> Mikael Magnusson <mikachu@gmail.com> 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


  reply	other threads:[~2017-01-26 19:45 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-25 14:27 Jun T.
2017-01-25 18:02 ` Mikael Magnusson
2017-01-26 17:57   ` Peter Stephenson
2017-01-26 19:30     ` Jens Elkner [this message]
2017-01-27  9:41     ` Peter Stephenson
2017-01-28 20:26       ` Bart Schaefer
2017-01-28 20:42         ` Peter Stephenson
2017-01-28 23:27           ` Bart Schaefer
2017-01-30 10:46             ` Peter Stephenson
2017-01-30  3:59 ` Bart Schaefer
2017-01-30  9:49   ` Peter Stephenson
2017-01-31 10:09   ` Jun T.
2017-01-31 11:19     ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170126193030.GA7787@trex.cs.ovgu.de \
    --to=jel+zsh@cs.uni-magdeburg.de \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).