Return-Path: Delivered-To: apmail-stdcxx-issues-archive@locus.apache.org Received: (qmail 57231 invoked from network); 2 Jun 2008 18:42:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Jun 2008 18:42:21 -0000 Received: (qmail 16384 invoked by uid 500); 2 Jun 2008 18:42:24 -0000 Delivered-To: apmail-stdcxx-issues-archive@stdcxx.apache.org Received: (qmail 16360 invoked by uid 500); 2 Jun 2008 18:42:24 -0000 Mailing-List: contact issues-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list issues@stdcxx.apache.org Received: (qmail 16337 invoked by uid 99); 2 Jun 2008 18:42:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jun 2008 11:42:24 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jun 2008 18:41:24 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5BCCC234C12E for ; Mon, 2 Jun 2008 11:41:45 -0700 (PDT) Message-ID: <1609270626.1212432105375.JavaMail.jira@brutus> Date: Mon, 2 Jun 2008 11:41:45 -0700 (PDT) From: "Martin Sebor (JIRA)" To: issues@stdcxx.apache.org Subject: [jira] Assigned: (STDCXX-930) [LWG #454] basic_filebuf::open should accept wchar_t names In-Reply-To: <699610855.1210360375657.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/STDCXX-930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Martin Sebor reassigned STDCXX-930: ----------------------------------- Assignee: Martin Sebor > [LWG #454] basic_filebuf::open should accept wchar_t names > ---------------------------------------------------------- > > Key: STDCXX-930 > URL: https://issues.apache.org/jira/browse/STDCXX-930 > Project: C++ Standard Library > Issue Type: Bug > Components: 27. Input/Output > Affects Versions: 4.2.1 > Reporter: Martin Sebor > Assignee: Martin Sebor > Priority: Minor > Fix For: 4.3 > > Original Estimate: 6h > Time Spent: 6h > Remaining Estimate: 0h > > LWG issue [454|http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2577.html#454] proposes to change [filebuf.members] from: > {quote} > {noformat} > basic_filebuf* open(const char* s, ios_base::openmode mode); > {noformat} > ??Effects??: If {{is_open() != false}}, returns a null pointer. Otherwise, initializes the {{filebuf}} as required. It then opens a file, if possible, whose name is the NTBS ??s?? ("as if" by calling {{std::fopen(??s??, ??modstr??)}}). > {quote} > to: > {quote} > {noformat} > basic_filebuf* open(const char* s, ios_base::openmode mode); > basic_filebuf* open(const wchar_t* ws, ios_base::openmode mode); > {noformat} > ??Effects??: If {{is_open() != false}}, returns a null pointer. Otherwise, initializes the {{filebuf}} as required. It then opens a file, if possible, whose name is the NTBS ??s?? ("as if" by calling {{std::fopen(??s??, ??modstr??)}}). For the second signature, the NTBS ??s?? is determined from the WCBS ??ws?? in an implementation-defined manner. > (NOTE: For a system that "naturally" represents a filename as a WCBS, the NTBS ??s?? in the first signature may instead be mapped to a WCBS; if so, it follows the same mapping rules as the first argument to {{open}}.) > {quote} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.