Hate saves the day! (was: Don't fancify my man pages!)

2007-11-19 Thread Michael G Schwern
Original Message Subject: Re: nroff does not honor TYPESETTER Date: Mon, 19 Nov 2007 21:40:13 +0100 (CET) From: Werner LEMBERG To: schw...@pobox.com CC: bug-gr...@gnu.org References: <4740ecc9.9030...@pobox.com> > nroff does not honor the TYPESETTER environment variable documen

Re: How NOT to write a shared library

2007-11-19 Thread Peter da Silva
I've got mixed feelings about this one. On a PDP-11, malloc() fails pretty often, and you've generally got an idea of what to do to handle it. On a modern desktop if malloc() starts failing you're in deep shit. You've filled up RAM, *and* swap, and paged out everything that can be paged o

Re: How NOT to write a shared library

2007-11-19 Thread Martin Ebourne
On Mon, 2007-11-19 at 13:34 -0800, David King wrote: > On-topic from : > > I'm interested in audio, so I'm looking over the (frankly horrible) > documentation for this new "Pulse Audio" thing, and I see this > function in its shared lib: > >

How NOT to write a shared library

2007-11-19 Thread David King
On-topic from : I'm interested in audio, so I'm looking over the (frankly horrible) documentation for this new "Pulse Audio" thing, and I see this function in its shared lib: pa_xmalloc() Allocates the specified number of bytes, just

Re: Don't fancify my man pages!

2007-11-19 Thread seph
Michael G Schwern writes: > A. Pagaltzis wrote: >> Reminds me, this is not the only GNU tool that needs such >> treatment. GNU grep pays attention to the locale as well, but its >> encoding decoder is apparently written in Visual Basic -- if you >> use a UTF-8 locale, it will slow down by TWO ORD

Re: Don't fancify my man pages!

2007-11-19 Thread H.Merijn Brand
On Mon, 19 Nov 2007 14:46:50 +0100, "A. Pagaltzis" wrote: * Michael G Schwern [2007-11-19 10:25]: > A. Pagaltzis wrote: > > Reminds me, this is not the only GNU tool that needs such > > treatment. GNU grep pays attention to the locale as well, but > > its encoding decoder is apparently written

Re: Don't fancify my man pages!

2007-11-19 Thread A. Pagaltzis
* Michael G Schwern [2007-11-19 10:25]: > A. Pagaltzis wrote: > > Reminds me, this is not the only GNU tool that needs such > > treatment. GNU grep pays attention to the locale as well, but > > its encoding decoder is apparently written in Visual Basic -- > > if you use a UTF-8 locale, it will slo

Re: Don't fancify my man pages!

2007-11-19 Thread Michael G Schwern
A. Pagaltzis wrote: > Reminds me, this is not the only GNU tool that needs such > treatment. GNU grep pays attention to the locale as well, but its > encoding decoder is apparently written in Visual Basic -- if you > use a UTF-8 locale, it will slow down by TWO ORDERS OF MAGNITUDE. > > $ time

Re: Don't fancify my man pages!

2007-11-19 Thread A. Pagaltzis
Hi Michael, * Michael G Schwern [2007-11-19 02:25]: > nroff (or rather groff) replaced all the ASCII single quotes in > the file with fancy Unicode x2019 quotes. it doesn't stop there. Guess what it does with double hyphens? No really! It converts them into em-dashes. Aaah! $ grep m

Re: Don't fancify my man pages!

2007-11-19 Thread Matt McLeod
Phil Pennock wrote: > On 2007-11-18 at 17:16 -0800, Michael G Schwern wrote: > > $ grep 2019 groff-1.19.2/font/devutf8/R.proto > > ' 24 0 0x2019 > > Yeah, UTF-8 output in GNU nroff also uses fancy soft-break hyphens for > words split across lines which is all well and good I suppo

Re: Don't fancify my man pages!

2007-11-19 Thread Phil! Gregory
* Michael G Schwern [2007-11-18 17:16 -0800]: > Smart quotes in man pages. What's next? A while back, I ran into a problem because nroff was turning all hyphens into en-dashes or something similarly Unicode-y. This becomes a problem when I try to copy and paste --bloody-long-gnu-option-dwim-dam

Re: Don't fancify my man pages!

2007-11-19 Thread Phil Pennock
On 2007-11-18 at 17:16 -0800, Michael G Schwern wrote: > $ grep 2019 groff-1.19.2/font/devutf8/R.proto > ' 24 0 0x2019 Yeah, UTF-8 output in GNU nroff also uses fancy soft-break hyphens for words split across lines which is all well and good I suppose, but the character isn't supp

Don't fancify my man pages!

2007-11-19 Thread Michael G Schwern
Lately I've been noticing that less has been subtly choking on perldoc pages. Lines might appear and disappear as I scrolled up and down. I figured it was a bug in less, but no. It is far more evil. Today I pasted some example code from "perldoc Attribute::Handlers" into a text file to write up