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

List:       mingw-users
Subject:    Re: [Mingw-users] unicode and wprintf
From:       "Al Slater" <al.slater () scluk ! com>
Date:       2006-01-27 12:01:47
Message-ID: 43DA0BAB.8070802 () scluk ! com
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Steffen Hierl wrote:
> I ran the program
>  
> #include <wchar.h>
>  
> int main(int argc, char **argv)
>   {
> *  wprintf(L"%s", L"Hello");*
>   return 0;
>   }
>  
> in a MSDOS-box via "a.exe >> log". The file "log" is 7 bytes big while
> it should be 2*5=10 bytes big. Has anyone any idea for the reason?

On my system, log is 5 bytes in size.

I don't believe that wprintf outputs in unicode, but converts the output
to the local charset.

MSDN says nothing that I can see to suggest otherwise.

Al

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFD2gurz4fTOFL/EDYRAolxAJ970xKCOR+q7FO63Us8jaxDP8e80ACePdZZ
8suN20+UCWLWw4fmQl0S0tg=
=slin
-----END PGP SIGNATURE-----



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
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