Re: AUTHORS list and the C locale on Mac OS X

2010-11-11 Thread Charles Davis
Well, it looks like this whole discussion has just been rendered moot. AJ committed 40977bf1d2f0f11a24fd9330dffac264fced2306 to Wine, which makes shell32 store the AUTHORS file as a resource instead of using sed to turn it into an array of strings. Chip

Re: AUTHORS list and the C locale on Mac OS X

2010-11-10 Thread Ken Thomases
On Nov 9, 2010, at 4:29 PM, Reece Dunn wrote: You could use autoconf to detect: 1/ broken handling of UTF-8 characters by sed; 2/ name of LC_ALL flag that handles UTF-8 In theory, you only need to set LC_CTYPE, not any other aspect of the locale. And for that, you don't need the

Re: AUTHORS list and the C locale on Mac OS X

2010-11-10 Thread Ken Thomases
On Nov 10, 2010, at 2:27 PM, Hin-Tak Leung wrote: --- On Wed, 10/11/10, Ken Thomases k...@codeweavers.com wrote: Are you sure about that? Checking on a couple of Linux systems here, the locale command reports: $ locale LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 ... mine (fedora x86_64)

Re: AUTHORS list and the C locale on Mac OS X

2010-11-10 Thread Reece Dunn
On 10 November 2010 22:45, Ken Thomases k...@codeweavers.com wrote: On Nov 10, 2010, at 2:27 PM, Hin-Tak Leung wrote: --- On Wed, 10/11/10, Ken Thomases k...@codeweavers.com wrote: Are you sure about that?  Checking on a couple of Linux systems here, the locale command reports: $ locale

Re: AUTHORS list and the C locale on Mac OS X

2010-11-10 Thread Ken Thomases
On Nov 10, 2010, at 5:00 PM, Reece Dunn wrote: I'm getting the same behaviour (Ubuntu 10.10) -- LC_ALL accepts either utf8 or UTF-8 for en_GB, en_IE, etc. The caveat here is that the primary locale needs to exist (and presumably needs to have a UTF-8 valiant present). That is, as I don't

Re: AUTHORS list and the C locale on Mac OS X

2010-11-10 Thread Hin-Tak Leung
--- On Wed, 10/11/10, Ken Thomases k...@codeweavers.com wrote: From: Ken Thomases k...@codeweavers.com Subject: Re: AUTHORS list and the C locale on Mac OS X To: Reece Dunn mscl...@googlemail.com Cc: wine-devel wine-devel@winehq.org Date: Wednesday, 10 November, 2010, 20:08 On Nov 9, 2010

Re: AUTHORS list and the C locale on Mac OS X

2010-11-10 Thread Hin-Tak Leung
--- On Wed, 10/11/10, Ken Thomases k...@codeweavers.com wrote: I should have been clearer.  The output just reflects your environment.  So, you have LANG set to en_GB.utf8.  I had LANG set to en_US.UTF-8.  My only point was to say that the UTF-8 form is acceptable.  It was not to suggest

AUTHORS list and the C locale on Mac OS X

2010-11-09 Thread Charles Davis
Hi, There may be a problem with the way the authors.c file is generated on a Mac with GNU sed installed. On Mac OS X, the C locale's default encoding is MacRoman, not UTF-8. This has some pretty surprising consequences. For example, since the AUTHORS file contains UTF-8 multibyte sequences that

Re: AUTHORS list and the C locale on Mac OS X

2010-11-09 Thread James Mckenzie
Charles Davis cda...@mymail.mines.edu wrote: Hi, There may be a problem with the way the authors.c file is generated on a Mac with GNU sed installed. On Mac OS X, the C locale's default encoding is MacRoman, not UTF-8. This has some pretty surprising consequences. For example, since the AUTHORS

Re: AUTHORS list and the C locale on Mac OS X

2010-11-09 Thread Charles Davis
On 11/9/10 12:13 PM, James Mckenzie wrote: No, it is not a bug in GNU sed. The authors.c file needs to have the erroneous characters for the language used by MacOSX changed to be acceptable? That ain't gonna fly. I think we should explicitly use a UTF-8 locale (like en_US.UTF-8 or some such)

Re: AUTHORS list and the C locale on Mac OS X

2010-11-09 Thread James Mckenzie
Charles Davis cda...@mymail.mines.edu wrote: On 11/9/10 12:13 PM, James Mckenzie wrote: No, it is not a bug in GNU sed. The authors.c file needs to have the erroneous characters for the language used by MacOSX changed to be acceptable? That ain't gonna fly. I think we should explicitly use a

Re: AUTHORS list and the C locale on Mac OS X

2010-11-09 Thread Charles Davis
On 11/9/10 1:58 PM, James Mckenzie wrote: Charles Davis cda...@mymail.mines.edu wrote: On 11/9/10 12:13 PM, James Mckenzie wrote: No, it is not a bug in GNU sed. The authors.c file needs to have the erroneous characters for the language used by MacOSX changed to be acceptable? That ain't

Re: AUTHORS list and the C locale on Mac OS X

2010-11-09 Thread Reece Dunn
On 9 November 2010 22:13, Charles Davis cda...@mymail.mines.edu wrote: On 11/9/10 1:58 PM, James Mckenzie wrote: Charles Davis cda...@mymail.mines.edu wrote: On 11/9/10 12:13 PM, James Mckenzie wrote: No, it is not a bug in GNU sed.  The authors.c file needs to have the erroneous characters

Re: AUTHORS list and the C locale on Mac OS X

2010-11-09 Thread James McKenzie
On 11/9/10 3:29 PM, Reece Dunn wrote: On 9 November 2010 22:13, Charles Daviscda...@mymail.mines.edu wrote: On 11/9/10 1:58 PM, James Mckenzie wrote: Charles Daviscda...@mymail.mines.edu wrote: On 11/9/10 12:13 PM, James Mckenzie wrote: No, it is not a bug in GNU sed. The authors.c file

Re: AUTHORS list and the C locale on Mac OS X

2010-11-09 Thread Charles Davis
On 11/9/10 7:58 PM, James McKenzie wrote: On 11/9/10 3:29 PM, Reece Dunn wrote: On 9 November 2010 22:13, Charles Daviscda...@mymail.mines.edu wrote: On 11/9/10 1:58 PM, James Mckenzie wrote: Charles Daviscda...@mymail.mines.edu wrote: On 11/9/10 12:13 PM, James Mckenzie wrote: No, it is

Re: AUTHORS list and the C locale on Mac OS X

2010-11-09 Thread James McKenzie
On 11/9/10 8:02 PM, Charles Davis wrote: On 11/9/10 7:58 PM, James McKenzie wrote: On 11/9/10 3:29 PM, Reece Dunn wrote: On 9 November 2010 22:13, Charles Daviscda...@mymail.mines.edu wrote: On 11/9/10 1:58 PM, James Mckenzie wrote: Charles Daviscda...@mymail.mines.edu wrote: On 11/9/10