Re: unicode file



However, the extra library I wrote (nothing special, of course) is useful
for its simplicity and to give a RAII approach to Unicode UTF-8 text file
management.

No debate here, it can still be useful.


it is simpler than calling _open, specifying some flags, converting
UTF-16 -> UTF-8, closing the file, etc.

My small library does the UTF-16 to UTF-8 conversion behind the scene.

This kind of conversion is what is also happening with then new _open.

Not saying your library is not useful.
People use CFile instead of CreateFile, std::string or CString instead
of char* and so on.

But I also think one should be aware of all options, to be able to
choose what fits best for her/his case.


--
Mihai Nita [Microsoft MVP, Visual C++]
http://www.mihai-nita.net
------------------------------------------
Replace _year_ with _ to get the real email
.



Relevant Pages

  • Re: unicode file
    ... for its simplicity and to give a RAII approach to Unicode UTF-8 text file ... management. ... No debate here, ... Mihai: no debate, of course:) ...
    (microsoft.public.vc.mfc)
  • Re: Cohens paper on byte order
    ... > extend) the debate about the problem itself. ... difficulties with the byte-array implementation because ... since we are working with the same type of hardware ... In that case a conversion would ...
    (sci.crypt)
  • Re: Look Who Has a Black Belt in Karate
    ... management. ... Where was the teleprompter when Obama destroyed all challengers in debate? ...
    (rec.martial-arts)
  • Re: convert vb.net to asp.net
    ... Performance is one thing, conversion is another. ... management is a matter of client requirements and server workload, ... > State issues alone can make such a conversion quite daunting sometimes, ... > not to mention all the other paradigm shifts involved. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: [VA] weak collections/ finalization seems very strange?
    ... Ian Upright wrote: ... simple when you don't have to explicitly deal with manual memory ... I don't think we have to debate the fact that automatic ... memory management makes our lives easier. ...
    (comp.lang.smalltalk)

Loading