RE: FW: [gnu.org #371319] missing in documentation?

2008-08-25 Thread Meller, Thomas
Hello Jim,

thanks a lot for your help.
Meanwhile I found my way through.

My experience with the texinfo manuals is most of them repeat the
content of the corresponding manpages.
Well - experiences are subject to aging. :-| 
Times get better - sometimes. :)
Simply adding the hint "info coreutils 'date invocation' " near the
explanation of the '-d' switch would help a lot.
I don't think it is necessary to export the texinfo manual. If you find
something worth learning how to fiddle with 'info' and don't use it -
that's up to you.

New features are always welcome. Finding them, too.


> -Original Message-
> From: Jim Meyering [mailto:[EMAIL PROTECTED] 
> Sent: Mittwoch, 20. August 2008 21:20
> To: Meller, Thomas
> Cc: bug-coreutils@gnu.org
> Subject: Re: FW: [gnu.org #371319] missing in documentation?
> 
> Jim Meyering <[EMAIL PROTECTED]> wrote:
> 
> > "Meller, Thomas" <[EMAIL PROTECTED]> wrote:
> >> Hello Jim,
> >
> > [please use the mailing list (Cc'd) in the future]
> >
> >> I think this whish ist best sent to you.
> >> IMHO this could help a lot of system admins do their jobs better.
> >>
> >> Meanwhile, I found that the OS release I got does not support this
> >> functionality. Mentioning the change-list or the 
> implementation date
> >> somewhere would be helpful, too.
> >
> > Run this command to see many examples:
> >
> > info coreutils 'date invocation' examples
> >
> > Both "man date" and "date --help" already suggest that you run this
> > (same as above, but without "examples"):
> >
> > info coreutils 'date invocation'
> >
> > And when you do that, you see an 8-item menu where the last one
> > is "* Examples of date::".   Type "m" (for menu) and then "E",
> > (the first letter in the item you want), and TAB, and ENTER.
> >
> > So maybe all you really need is a more up to date man page?
> >
> > There is so much high-quality documentation that is available most
> > conveniently in Texinfo/info format, that it really is 
> worth spending
> > a few minutes to become familiar with the basics of using "info"
> > (Run "info info").
> 
> My main objection to copying the examples from texinfo into the man
> page is the maintenance hassle.  If someone will write a little script
> to automate translation of the output of this
> 
> info coreutils 'date invocation' examples
> 
> into troff suitable for inclusion via man/date.x, that would
> make a nice addition to people who don't know/like to use info.
> 


___
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils


terrible Unicode shattering fold(1) command

2008-08-25 Thread jidanni
Problem 1: Here we see fold -s busy busting apart UTF-8 characters
again still.

Every third chop falls on a boundary, so is lucky.

No, I did not use `--bytes'. The result is the same as if I did anyway!

Problem 2: Also, when the critical chunk moves past the chopper blade, and we 
now start
chopping ASCII, the UTF-8 chopping subsides, but it still chops NOT at
a blank, yes, that agrees with

`--spaces'
 Break at word boundaries: the line is broken after the last blank
 before the maximum line length.  If the line contains no such
 blanks, the line is broken at the maximum line length as usual.

but don't you see **you leave no option open to respect peoples words
and not bust them apart**. "So don't use the program" you might say.
Well, the program works nicely on 99% of the lines. Just please add an
option to also not bust apart peoples words no matter what!

$ env|egrep LC_\|LANG
LC_MESSAGES=C
LC_COLLATE=C
LANG=zh_TW.UTF-8
LC_CTYPE=zh_TW.UTF-8
$ cat t3
perl -lwe '
$w=q(曾昭媛 - 婦女新知基金會|0955-327898|02-2502-8715|[EMAIL PROTECTED]|秘書長);
for(0..11){$w=~s/z/zz/;print "echo \"$w\"|fold -s|iconv|wc -lc"}'|sh
$ sh t3
  3  98
iconv: illegal input sequence at position 91
  1  91
iconv: illegal input sequence at position 92
  1  92
  3 101
iconv: illegal input sequence at position 91
  1  91
iconv: illegal input sequence at position 92
  1  92
  3 104
  3 105
  3 106
  3 107
  3 108
  3 109
$ fold --version
fold (GNU coreutils) 6.10
fmt -s does not have this problem.
fold with no -s, and no -b or with -b also busts Unicode, use this
shortened test where the blade hits the critical area. Therefore we
see -b is stuck on, like it or not.
perl -lwe '
$w=q(曾昭媛 - 婦女新知基金會|0955-327898|02-2502-8715|[EMAIL PROTECTED]|秘書長);
for(0..11){$w=~s/z/zz/;print "echo \"$w\"|fold|iconv|wc -lc"}'|sh


___
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils