Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 20767 invoked from network); 6 Aug 2007 22:10:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Aug 2007 22:10:22 -0000 Received: (qmail 15266 invoked by uid 500); 6 Aug 2007 22:10:22 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 15204 invoked by uid 500); 6 Aug 2007 22:10:22 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 15193 invoked by uid 99); 6 Aug 2007 22:10:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Aug 2007 15:10:21 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Aug 2007 22:10:13 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CBE5E7141F3 for ; Mon, 6 Aug 2007 15:09:59 -0700 (PDT) Message-ID: <25039237.1186438199832.JavaMail.jira@brutus> Date: Mon, 6 Aug 2007 15:09:59 -0700 (PDT) From: "Travis Vitek (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Created: (STDCXX-510) locale tests assert and abort when passed --help command line argument MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org locale tests assert and abort when passed --help command line argument ---------------------------------------------------------------------- Key: STDCXX-510 URL: https://issues.apache.org/jira/browse/STDCXX-510 Project: C++ Standard Library Issue Type: Bug Components: Tests Affects Versions: 4.1.4 Reporter: Travis Vitek Priority: Minor Fix For: 4.1.4 Running any one of the locale tests with the '--help' command line argument results in an assertion error and then immediate program termination. This makes it difficult to tell what command line options are available. This is because the rw_opt_setlocales function in locales.cpp doesn't handle the case where the first argument is NULL. This is the case when the --help command line argument exists. Most of the other rw_opt_... methods have a test like this near the top of the file. if (1 == argc && argv && 0 == argv [0]) { } If the test passes, argv[0] will be set to the help string that should be used. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.