Re: Cut not working with multi-byte UTF-8 characters

2006-07-10 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Patrik Hirvinen on 7/9/2006 8:48 AM: > Hi, > > This bug was found on an Ubuntu 5.10 GNU/Linux x86 using cut version > 5.2.1. Locale used was en_US.UTF-8. > > When fed text that includes multi-byte characters, cut makes the > assumption t

Re: problem with gl_ABSOLUTE_HEADER and HP-UX native ANSI C compiler

2006-07-10 Thread Bob Proulx
Paul Eggert wrote: > > However if I change it to use "" inclusion it works. > > OK, thanks, then we might as well try using "" everywhere. I'm more > comfortable with "///..." anyway; the gave me the willies, > since a compiler might think it was a C99 comment. Ew, yes, that does seem disconcer

Re: problem with gl_ABSOLUTE_HEADER and HP-UX native ANSI C compiler

2006-07-10 Thread Paul Eggert
[EMAIL PROTECTED] (Bob Proulx) writes: > ./lib/Makefile:ABSOLUTE_STDINT_H = > ./lib/stdint.h:# include Looks like you need to re-run 'config.status'. Or do a 'make distclean' and start from scratch. ___ Bug-coreutils mailing list Bug-coreutils@

Re: problem with gl_ABSOLUTE_HEADER and HP-UX native ANSI C compiler

2006-07-10 Thread Bob Proulx
Paul Eggert wrote: > Bob Proulx writes: > > ./lib/Makefile:ABSOLUTE_STDINT_H = > > ./lib/stdint.h:# include > > Looks like you need to re-run 'config.status'. That won't help. It is in config.status. Look at this: grep ',g > Or do a 'make distclean' and start from scratch. I was doin

Re: problem with gl_ABSOLUTE_HEADER and HP-UX native ANSI C compiler

2006-07-10 Thread Eric Blake
> > Bob Proulx writes: > > > ./lib/Makefile:ABSOLUTE_STDINT_H = > > > ./lib/stdint.h:# include > > > > Looks like you need to re-run 'config.status'. > > That won't help. It is in config.status. Look at this: Does this solve it? 2006-07-10 Eric Blake <[EMAIL PROTECTED]> * std

[PATCH] date: Add `seconds since midnight' and `day of year (000..365)'

2006-07-10 Thread Shaun Jackman
This patch adds two useful formats to date: %i -- seconds since midnight %J -- day of year (000..365) These formats are useful in constructing a time format which is zero-based and includes a minimum number of arbitrary bases, such as %Y-%J-%i.%N. Cheers, Shaun 2006-07-10 Shau

Re: problem with gl_ABSOLUTE_HEADER and HP-UX native ANSI C compiler

2006-07-10 Thread Bob Proulx
Eric Blake wrote: > Does this solve it? > Index: m4/stdint.m4 > ... > -ABSOLUTE_STDINT_H="<$gl_cv_absolute_stdint_h>" > -AC_SUBST([ABSOLUTE_STDINT_H]) It is definitely related code. But unfortunately no it does not fix it. Actually things take a turn for the worse. With that change the

Re: problem with gl_ABSOLUTE_HEADER and HP-UX native ANSI C compiler

2006-07-10 Thread Paul Eggert
Thanks for reporting the further problem. I installed this in both gnulib and coreutils. Eric, mind if I do something similar for sys_stat_h.m4? 2006-07-10 Paul Eggert <[EMAIL PROTECTED]> * stdint.m4 (gl_STDINT_H): Like yesterday's change to absolute-header.m4. Also, set ABSO

Re: problem with gl_ABSOLUTE_HEADER and HP-UX native ANSI C compiler

2006-07-10 Thread Eric Blake
> Thanks for reporting the further problem. I installed this > in both gnulib and coreutils. > > Eric, mind if I do something similar for sys_stat_h.m4? Go for it. Shouldn't we also fix the comments of absolute-header.m4, while we are at it? $ cvs diff m4/absolute-header.m4 Index: m4/absolut

Re: AC_HEADER_DIRENT

2006-07-10 Thread Paul Eggert
"Derek R. Price" <[EMAIL PROTECTED]> writes: > Patch attached. Thanks. I found a few other instances of checking for dirent.h, and a couple of places we need to include before (this is for POSIX before 2001). I installed this into gnulib, and will propagate it into coreutils shortly. Index:

Re: [PATCH] date: Add `seconds since midnight' and `day of year (000..365)'

2006-07-10 Thread Paul Eggert
"Shaun Jackman" <[EMAIL PROTECTED]> writes: > These formats are useful in constructing a time format which is > zero-based and includes a minimum number of arbitrary bases, such as > %Y-%J-%i.%N. %s.%N would better achieve that goal, no? It has one base, not three. (Plus, it already works. :-)