Issue Details (XML | Word | Printable)

Key: STDCXX-930
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Martin Sebor
Reporter: Martin Sebor
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
C++ Standard Library

[LWG #454] basic_filebuf::open should accept wchar_t names

Created: 09/May/08 07:11 PM   Updated: 02/Jun/08 06:41 PM
Return to search
Component/s: 27. Input/Output
Affects Version/s: 4.2.1
Fix Version/s: 4.3.0

Time Tracking:
Original Estimate: 6h
Original Estimate - 6h
Remaining Estimate: 2h
Time Spent - 6h Remaining Estimate - 2h
Time Spent: 6h
Time Spent - 6h Remaining Estimate - 2h

Severity: Usability


 Description  « Hide
LWG issue 454 proposes to change [filebuf.members] from:
    basic_filebuf<charT,traits>* open(const char* s, ios_base::openmode mode);

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)).

to:

    basic_filebuf<charT,traits>* open(const char* s, ios_base::openmode mode);
    basic_filebuf<charT,traits>* open(const wchar_t* ws, ios_base::openmode mode);

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.)



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no subversion log entries for this issue yet.