From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by sourceware.org (Postfix) with ESMTPS id B4934385841D; Thu, 4 Apr 2024 08:17:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B4934385841D Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B4934385841D Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::533 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712218660; cv=none; b=SWwuZC+YJHpvqd4FLuPkHTcpn8W4c9pMLBrbTMj9QDpVO7khwjNVjUTy+VGNpLXS/7dP9i97HGmgwigMhIcQxDueTJLIhK21GAP7z/leq7kCwp3mowRwskOSyLskLFMJCIASTgpkXPfyFEqxttbAWp/6houNH0YlbtFHN2CHJvc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712218660; c=relaxed/simple; bh=f2FB5Z6MdFfBWhNbvc7kFSELZxQbhFoKGqKclTNHMeI=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=Wcp0saU9+A0JlTmdTKb4CTSzL7nkDwlg/BzO27xgLc10wBPGivSXzRCDftOYLon37LOCreVEpunnDW+Ur9hJ4B0sIzCNo0Y38Cquj7omPJagZvuDW/nGGRQ74XzaUeqDjbdXVhKdRbDJvWnhGH5yYzkXhS4leSNXIxdyMBxEzuI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pg1-x533.google.com with SMTP id 41be03b00d2f7-5cfd95130c6so574462a12.1; Thu, 04 Apr 2024 01:17:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712218656; x=1712823456; darn=gcc.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=/2xWozIgslE9I95spWUs+vsypmx6Po001kN4sZA2ijQ=; b=COvOj8SmhvgLOdcUckHE/N5sER3ZPtq+Vx8PwEVYcBYYXKeC/cbcO3AwN427Jl8O/u YueTpf5aQq7FgO1LjAX9q5v7xDkgTZv/7xWdRmyBVblJVXi+J7NMlXpX+A4jabiexEzN KN6oFr4kUhXHdLslEKq6k+OnQGDfelXR23jqoiHGfBsMdB12vjhOJqWSala/hhJ2LvEG qZfXWmfkrbPmjEuxG7GssHk5yGqoZIer3acfBVhT/gXNs2k0zk+bceT6KrhZHsk9J4JX hEH8Dg3D7NVQ1ds83/AkgcMEXAjaZsl5pVC9HVZ3inuBspAl2/ccbHyRlgWAg7BGm+KA yXAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712218656; x=1712823456; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/2xWozIgslE9I95spWUs+vsypmx6Po001kN4sZA2ijQ=; b=mqUh0Pd0gq+ryzEGwDpRRyj/wRXBWcRkA43y89fpR9+VZx4Fc3YqiHrLHe764nXzYi QJHyAJdpwQfHW48+11KZ3gPXH44zVpy1Bxkk7abZvjEQ/aTDgAo9ri5m57gSd5EYYZb6 czfr/XLStKpORA1bZfgMK3q7i6PGc887pShYbTNT5dMGPYnYvQipi710Z5ACQTmpkX+Q M6Oieu3+zSJKmF+5jznvC8VI9cZ9I/K3xxWiienUj6Qamc/gjDX6V1mIn6bohTwbNfma ZosUJpNa9V96AhmV2A1oTX1HvwuhW4IGS7sjMT8xbHdmgIYroAiGpo+Yx3mNPA4UyJpY H42A== X-Forwarded-Encrypted: i=1; AJvYcCVB1aBaWSY2vMFOGoOBhXzFSTS/bGBUowoBcwZBilWWxVPfIl7SXBfT/FhujCh1OZM+EQvpupQdfjjsQiJpi4fg7a+tVx+p5A== X-Gm-Message-State: AOJu0Yy3o8YNU2zp69WMIBCJWkfByJL86xgUHAgIZBqTxWB0TlWqo/OH 0TXxka1ZkBsfPtUVNx68iDZwXDVYbyxYjVrA8br0vjvONzYREBrSCLDVdmcZ5raqsxnFkUl9QgD ZZahRYxAEPsBXeQLqO0JmUIbFFFA/ehNx X-Google-Smtp-Source: AGHT+IEp4EZqidqpqiP7ZBB5YjtsgTeOwy2KSmu0OqENIh8VuuYt/fN59YCj0qvnPsda2F5zHb/ibukff+VOhdpdE0Q= X-Received: by 2002:a05:6a20:2d2a:b0:1a3:53e7:16da with SMTP id g42-20020a056a202d2a00b001a353e716damr2411030pzl.15.1712218656434; Thu, 04 Apr 2024 01:17:36 -0700 (PDT) MIME-Version: 1.0 References: <9a848b89-ee95-44f7-8491-cbe22804edf4@gmail.com> In-Reply-To: <9a848b89-ee95-44f7-8491-cbe22804edf4@gmail.com> From: Paul Richard Thomas Date: Thu, 4 Apr 2024 09:17:25 +0100 Message-ID: Subject: =?UTF-8?Q?Re=3A_=5Bpatch=2C_libgfortran=5D_PR114304_=2D_=5B13=2F14_Regressio?= =?UTF-8?Q?n=5D_libgfortran_I=2FO_=E2=80=93_bogus_=22Semicolon_not_allowed_as_separ?= =?UTF-8?Q?ator_with_DECIMAL=3D=27point=27=22?= To: Jerry D Cc: gfortran , gcc-patches Content-Type: multipart/alternative; boundary="000000000000cb7010061540f883" X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --000000000000cb7010061540f883 Content-Type: text/plain; charset="UTF-8" Hi Jerry, It looks good to me. Noting that this is not a regression, OK for mainline on condition that you keep a sharp eye out for any associated problems. Likewise with backporting to 13-branch. Thanks Paul On Thu, 4 Apr 2024 at 02:34, Jerry D wrote: > Hi all, > > The attached log entry and patch (git show) fixes this issue by adding > logic to handle spaces in eat_separators. One or more spaces by > themselves are a valid separator. So in this case we look at the > character following the spaces to see if it is a comma or semicolon. > > If so, I change it to the valid separator for the given decimal mode, > point or comma. This allows the comma or semicolon to be interpreted as > a null read on the next effective item in the formatted read. > > I chose a permissive approach here that allows reads to proceed when the > input line is mal-formed with an incorrect separator as long as there is > at least one space in front of it. > > New test case included. Regression tested on X86-64. > > OK for trunk? Backport to 13 after some time. > > Regards, > > Jerry --000000000000cb7010061540f883--