From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29524 invoked by alias); 13 Apr 2014 17:48:41 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 29504 invoked by uid 89); 13 Apr 2014 17:48:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.1 required=5.0 tests=AWL,BAYES_00,LIKELY_SPAM_SUBJECT,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_PASS,UNSUBSCRIBE_BODY autolearn=no version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: mta21.charter.net Received: from mta21.charter.net (HELO mta21.charter.net) (216.33.127.81) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 13 Apr 2014 17:48:39 +0000 Received: from imp11 ([10.20.200.11]) by mta21.charter.net (InterMail vM.8.01.05.09 201-2260-151-124-20120717) with ESMTP id <20140413174837.MXMX10448.mta21.charter.net@imp11>; Sun, 13 Apr 2014 13:48:37 -0400 Received: from pavilion.localdomain ([68.5.43.244]) by imp11 with smtp.charter.net id pVob1n00B5G55b005VocVJ; Sun, 13 Apr 2014 13:48:36 -0400 X-Authority-Analysis: v=2.0 cv=F7QP7ddN c=1 sm=1 a=mw+G4YjGptsaRR05zBLClw==:17 a=3C7RHhrQF8gA:10 a=ex23gk2_5E0A:10 a=yUnIBFQkZM0A:10 a=8nJEP1OIZ-IA:10 a=hOpmn2quAAAA:8 a=-94d-WcqeqT9gSvDFA8A:9 a=wPNLvfGTeEIA:10 a=mw+G4YjGptsaRR05zBLClw==:117 X-Auth-id: anZkZWxpc2xlQGNoYXJ0ZXIubmV0 Message-ID: <534ACDF3.50000@charter.net> Date: Sun, 13 Apr 2014 17:48:00 -0000 From: Jerry DeLisle User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: gfortran CC: gcc patches Subject: Re: [patch, libgfortran] Wrong result for UTF-8/UCS-4 list-directed and namelist read and nml write References: <5337A474.8090004@charter.net> In-Reply-To: <5337A474.8090004@charter.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2014-04/txt/msg00627.txt.bz2 Ping! This is PR52539 On 03/29/2014 09:58 PM, Jerry DeLisle wrote: > Hi all, > > The attached patch fixes namelist read/write and list directed read/write to > support UTF-8. > > I have attached a preliminary test case to use to experiment with this. I will > need to set it up for the testsuite still. > > Regression tested on x86-64-linux-gnu. > > OK for trunk or wait? > > Regards, > > Jerry > > 2014-03-29 Jerry DeLisle > > PR libfortran/52539 > * io/list_read.c: Add uchar typedef. (push_char4): New function > to save kind=4 character. (next_char_utf8): New function to read > a single UTF-8 encoded character value. (read_chracter): Update > to use the new functions for reading UTF-8 strings. > (list_formatted_read_scalar): Update to handle list directed > reads of UTF-8 strings. (nml_read_obj): Likewise update for > UTF-8 strings in namelists. > * io/write.c (nml_write_obj): Add kind=4 character support for > namelist writes. >