From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 56817 invoked by alias); 13 Sep 2015 13:49:43 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 56782 invoked by uid 48); 13 Sep 2015 13:49:40 -0000 From: "gnugcc at marino dot st" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/67096] libstdc++ testsuite, codecvt: many UTF-8 tests illegal (testing bytes 5 and 6) Date: Sun, 13 Sep 2015 13:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gnugcc at marino dot st X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-09/txt/msg01073.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67096 --- Comment #4 from John Marino --- Created attachment 36332 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36332&action=edit codecvt/max_length/wchar/4.cc patch codecvt/max_length/wchar/4.cc test thinks that 6 is the maximum byte size for UTF-8 and fails if it detects lengths less than 6 bytes. Of course, the true limit is 4 bytes, so the test needs to be changed from 6 to 4. It is related to the tests this PR fixed (same problem, different form).