www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/05/27/12:11:13

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <20090516155216.GV21324@calimero.vinschen.de>
References: <3f0ad08d0905160756w5a1a4751sf687351097c6a406 AT mail DOT gmail DOT com> <20090516155216 DOT GV21324 AT calimero DOT vinschen DOT de>
Date: Thu, 28 May 2009 01:10:41 +0900
Message-ID: <3f0ad08d0905270910h5d9fe546g20791db7bee3c345@mail.gmail.com>
Subject: Re: [1.7] wprintf is broken?
From: IWAMURO Motonori <deenheart AT gmail DOT com>
To: newlib AT sourceware DOT org, cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Sorry, my report is not correct.
Because we must mix neither wide-character I/O nor multibyte-character
I/O in the specification.
(see the manual of fwide() function)

2009/5/17 Corinna Vinschen <corinna-cygwin AT cygwin DOT com>:
> On May 16 23:56, IWAMURO Motonori wrote:
>> Hi.
>>
>> wprintf is broken?
>>
>> I compile & run the following source:
>>
>> #include <stdio.h>
>> #include <locale.h>
>> #include <wchar.h>
>> int main(void) {
>> =A0 setlocale(LC_ALL, "en_US.UTF-8");
>> =A0 wprintf(L"%ls\n", L"Test\n");
>> =A0 printf("Test\n");
>> =A0 return 0;
>> }
>>
>> Result text:
>> http://vmi.jp/tmp/wprintf-is-broken.txt
>
> Works for me:
>
> =A0$ ./wp | od -c
> =A00000000 =A0 T =A0 e =A0 s =A0 t =A0\n =A0\n =A0 T =A0 e =A0 s =A0 t =
=A0\n
> =A00000013
>
>
> Corinna
>
> --
> Corinna Vinschen =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Please, send mails re=
garding Cygwin to
> Cygwin Project Co-Leader =A0 =A0 =A0 =A0 =A0cygwin AT cygwin DOT com
> Red Hat
>
> --
> Unsubscribe info: =A0 =A0 =A0http://cygwin.com/ml/#unsubscribe-simple
> Problem reports: =A0 =A0 =A0 http://cygwin.com/problems.html
> Documentation: =A0 =A0 =A0 =A0 http://cygwin.com/docs.html
> FAQ: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 http://cygwin.com/faq/
>
>



--=20
IWAMURO Motnori <http://vmi.jp/>

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019