Topic: C++ file streams do not handle UNICODE filenames


Author: Paul Grealish <paul.grealish@uk.geopak-tms.com>
Date: 1998/11/12
Raw View
Jon Hornstein wrote:
>
> C++ file streams do not handle UNICODE filenames.  Is this so, it's a
> big omission and should be redressed.
>
> Any comment, please forward your  responses to my email address.

I asked the same question recently.
Here's a reply I received:

> -----Original Message-----
> From: Valentin Bonnard [mailto:bonnardv@pratique.fr]
> Sent: Saturday, November 07, 1998 1:04 PM
> To: paul.grealish@uk.geopak-tms.com
> Subject: Re: wofstream
>
> [ I have set the followups to comp.std.c++ as it's purely
>   a question about why the language is defined the way it is. ]
>
> Paul Grealish <paul.grealish@uk.geopak-tms.com> writes:
>
> > Could anyone tell me why is there no version of 'open'
> > that accepts a wide character (wchar_t*) filename?
>
> From the list of library issues:
>
> > fstream ctors argument types desired
> >
> > Section: 27.8 lib.file.streams  Status: NAD Submitter:
> > AFNOR  Date: 7 Oct 98
> [...]
> > fstream ctors can't take wchar_t
> >
> > An extension to add a const wchar_t* to fstream would make
> > the implementation non conforming.
> >
> > Rationale:
> >
> > This is not a defect in the Standard.  It might be an
> > interesting extension for the next Standard.

There was also a post from someone else.
A dejanews search for 'wofstream' will
find it for you.

--
+---------------------------------+
|         Paul Grealish           |
|       GEOPAK-TMS Limited        |
|       Cambridge, England        |
| paul.grealish@uk.geopak-tms.com |
+---------------------------------+


[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]






Author: sultan@connexus.net.au (Jon Hornstein)
Date: 1998/11/11
Raw View
C++ file streams do not handle UNICODE filenames.  Is this so, it's a
big omission and should be redressed.

Any comment, please forward your  responses to my email address.


sincerly


Jon Hornstein (sultan@connexus.net.au)



[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]