Re: Remove accents from fortunes

2017-07-18 Thread Theo de Raadt
> Even though our default xterm(1) configuration is robust enough > that it usually doesn't break anything, I'm not convinced > indiscriminately printing UTF-8 is a good idea. The first part of that sentence contains way too much optimism. xterm and robust probably do not belong in the same

Re: Remove accents from fortunes

2017-07-12 Thread Theo Buehler
On Wed, Jul 12, 2017 at 12:07:47AM -0600, Anthony J. Bentley wrote: > Ingo Schwarze writes: > > So here is a patch that makes putting UTF-8 characters into > > fortune/datfiles safe. > > And here is a patch that retains the accents in the datfiles as UTF-8. ok one comment: > Index:

Re: Remove accents from fortunes

2017-07-12 Thread Stefan Sperling
On Wed, Jul 12, 2017 at 12:07:47AM -0600, Anthony J. Bentley wrote: > Ingo Schwarze writes: > > So here is a patch that makes putting UTF-8 characters into > > fortune/datfiles safe. > > And here is a patch that retains the accents in the datfiles as UTF-8. ok

Re: Remove accents from fortunes

2017-07-12 Thread Anthony J. Bentley
Ingo Schwarze writes: > So here is a patch that makes putting UTF-8 characters into > fortune/datfiles safe. And here is a patch that retains the accents in the datfiles as UTF-8. Index: Notes === RCS file:

Re: Remove accents from fortunes

2017-07-11 Thread Todd C. Miller
On Tue, 11 Jul 2017 19:47:41 +0200, Ingo Schwarze wrote: > So here is a patch that makes putting UTF-8 characters into > fortune/datfiles safe. OK millert@ - todd

Re: Remove accents from fortunes

2017-07-11 Thread Ted Unangst
Ingo Schwarze wrote: > Hi, > > Ted Unangst wrote on Tue, Jul 11, 2017 at 09:41:36AM -0400: > > > and it always sucks to lose information if somebody went to the > > trouble of recording the necessary accents already. > > So here is a patch that makes putting UTF-8 characters into >

Re: Remove accents from fortunes

2017-07-11 Thread Ingo Schwarze
Hi, Ted Unangst wrote on Tue, Jul 11, 2017 at 09:41:36AM -0400: > and it always sucks to lose information if somebody went to the > trouble of recording the necessary accents already. So here is a patch that makes putting UTF-8 characters into fortune/datfiles safe. Of course, we cannot

Re: Remove accents from fortunes

2017-07-11 Thread Stuart Henderson
On 2017/07/11 17:13, Ingo Schwarze wrote: > Hi Stuart, > > Stuart Henderson wrote on Tue, Jul 11, 2017 at 03:52:26PM +0100: > > On 2017/07/11 16:19, Ingo Schwarze wrote: > > >> This decade feels like a strange point in time for degrading fortune > >> and calendar files by replacing UTF-8

Re: Remove accents from fortunes

2017-07-11 Thread Ingo Schwarze
Hi Stuart, Stuart Henderson wrote on Tue, Jul 11, 2017 at 03:52:26PM +0100: > On 2017/07/11 16:19, Ingo Schwarze wrote: >> This decade feels like a strange point in time for degrading fortune >> and calendar files by replacing UTF-8 characters with ASCII >> transcriptions. Maybe such games

Re: Remove accents from fortunes

2017-07-11 Thread Stuart Henderson
On 2017/07/11 16:19, Ingo Schwarze wrote: > This decade feels like a strange point in time for degrading fortune > and calendar files by replacing UTF-8 characters with ASCII > transcriptions. Maybe such games should call > > setlocale(LC_CTYPE, ""); > char *loc = nl_langinfo(CODESET); > >

Re: Remove accents from fortunes

2017-07-11 Thread Ingo Schwarze
Hi, Anthony J. Bentley wrote on Tue, Jul 11, 2017 at 02:58:08AM -0600: > "Ted Unangst" writes: >> do we want to delete them? or replace them with proper utf-8 sequences? > I wouldn't mind doing that. But fortune(6) will happily print UTF-8 to a > non-UTF-8 terminal, which though probably

Re: Remove accents from fortunes

2017-07-11 Thread Reyk Floeter
I so much hate it when people drop the umlaut in my name and write "Floter" - this usually happens while being in America because people don't know better. My name is Flöter or Floeter ("ae", "oe", or "ue" are the correct substitutions). They are different letters with different pronunciations

Re: Remove accents from fortunes

2017-07-11 Thread Ted Unangst
Anthony J. Bentley wrote: > "Ted Unangst" writes: > > Anthony J. Bentley wrote: > > > Hi, > > > > > > "Punctuation followed by backspace" hasn't been the right way to enter > > > accents for a long time. > > > > hard to see what the diff is doing since i coudn't see the backspaces. :) > > > >

Re: Remove accents from fortunes

2017-07-11 Thread Philippe Meunier
Anthony J. Bentley wrote: >And since nobody's complained in the past few years that they couldn't >see the accents in Jabberwocky... But then some Frenchman might suddenly complain about René Descartes's name being misspelt (not that I had ever noticed that the accent didn't show up before

Re: Remove accents from fortunes

2017-07-11 Thread Anthony J. Bentley
"Ted Unangst" writes: > Anthony J. Bentley wrote: > > Hi, > > > > "Punctuation followed by backspace" hasn't been the right way to enter > > accents for a long time. > > hard to see what the diff is doing since i coudn't see the backspaces. :) > > do we want to delete them? or replace them with

Re: Remove accents from fortunes

2017-07-11 Thread Ted Unangst
Anthony J. Bentley wrote: > Hi, > > "Punctuation followed by backspace" hasn't been the right way to enter > accents for a long time. hard to see what the diff is doing since i coudn't see the backspaces. :) do we want to delete them? or replace them with proper utf-8 sequences?

Remove accents from fortunes

2017-07-10 Thread Anthony J. Bentley
Hi, "Punctuation followed by backspace" hasn't been the right way to enter accents for a long time. ok? Index: Notes === RCS file: /cvs/src/games/fortune/Notes,v retrieving revision 1.3 diff -u -p -r1.3 Notes --- Notes 28 Sep