[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mingw-users
Subject:    Re: [Mingw-users] {Spam?} Re: langinfo.h and nl_langinfo
From:       amores perros <lifelines_3_0_18 () hotmail ! com>
Date:       2007-09-22 15:39:28
Message-ID: BAY123-W171A50A0F1097F7ECE5B5FE1B40 () phx ! gbl
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


> Date: Fri, 21 Sep 2007 22:23:51 +0100
> From: Keith Marshall <keithmarshall@users.sourceforge.net>
> Subject: Re: [Mingw-users] {Spam?} Re: langinfo.h and	nl_langinfo
> 	availability
> To: mingw-users@lists.sourceforge.net
> Message-ID: <1190409831.4846.167.camel@localhost>
> Content-Type: text/plain
> 
> On Fri, 2007-09-21 at 23:08 +0200, Vincent Torri wrote:
> > I've not tested if the implementation works or not, but it should be
> > fine. 
> > I just have to compare nl_langinfo(CODESET) with "UTF-8".
> 
> Well, Microsnot's setlocale returns a codepage reference, rather than
> the classification POSIX expects, so you probably won't get `UTF-8'; you
> will more likely just get `cpNNNN'.
> 
...
> 
> Regards,
> Keith.
> 

If it is of any use to anyone, CP_UTF8 = 65001

As I believe someone mentioned, it is specifically supported 
for the conversion routines (MultiByteToWideChar and the reverse),
as long as you're on something newer than Windows 95.


_________________________________________________________________
Gear up for Halo® 3 with free downloads and an exclusive offer. It’s our way of \
saying thanks for using Windows Live™. \
http://gethalo3gear.com?ocid=SeptemberWLHalo3_WLHMTxt_2


[Attachment #5 (text/html)]

<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
&gt; Date: Fri, 21 Sep 2007 22:23:51 +0100<br>&gt; From: Keith Marshall \
&lt;keithmarshall@users.sourceforge.net&gt;<br>&gt; Subject: Re: [Mingw-users] \
{Spam?} Re: langinfo.h and	nl_langinfo<br>&gt; 	availability<br>&gt; To: \
mingw-users@lists.sourceforge.net<br>&gt; Message-ID: \
&lt;1190409831.4846.167.camel@localhost&gt;<br>&gt; Content-Type: text/plain<br>&gt; \
<br>&gt; On Fri, 2007-09-21 at 23:08 +0200, Vincent Torri wrote:<br>&gt; &gt; I've \
not tested if the implementation works or not, but it should be<br>&gt; &gt; fine. \
<br>&gt; &gt; I just have to compare nl_langinfo(CODESET) with "UTF-8".<br>&gt; \
<br>&gt; Well, Microsnot's setlocale returns a codepage reference, rather \
than<br>&gt; the classification POSIX expects, so you probably won't get `UTF-8'; \
you<br>&gt; will more likely just get `cpNNNN'.<br>&gt; <br>...<br>&gt; <br>&gt; \
Regards,<br>&gt; Keith.<br>&gt; <br><br>If it is of any use to anyone, CP_UTF8 = \
65001<br><br>As I believe someone mentioned, it is specifically supported <br>for the \
conversion routines (MultiByteToWideChar and the reverse),<br>as long as you're on \
something newer than Windows 95.<br><br><br /><hr />Gear up for Halo® 3 and get a $25 \
Best Buy gift card. It’s our way of saying thanks for using Windows Live™. <a \
href='http://gethalo3gear.com?ocid=SeptemberWLHalo3_WLHMTxt_1' target='_new'>Get it \
now!</a></body> </html>



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
MinGW-users mailing list
MinGW-users@lists.sourceforge.net

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic