0029081: With Mingw-w64 Unicode Paths Do Not Work
authorkgv <kgv@opencascade.com>
Wed, 6 Sep 2017 08:14:53 +0000 (11:14 +0300)
committerabv <abv@opencascade.com>
Fri, 6 Oct 2017 17:49:14 +0000 (20:49 +0300)
commitfc8918ad91d704b213a4c389e3640bc5626d98cf
treeef8bf6200f8f61806efd1551cf1b50eee2baf7dc
parentcda06ac0e3d5a3953a2cad211930e74bbdf0b87c
0029081: With Mingw-w64 Unicode Paths Do Not Work

OSD_OpenStream() now uses __gnu_cxx::stdio_filebuf extension for opening UNICODE files on MinGW when using C++ file streams.
Variant accepting filebuf returns bool (true if succeeded and false otherwise).

Checks of ofstream to be opened made via calls to low-level ofstream::rdbuf() are replaced by calls to ofstream::is_open(); state of the stream is also checked (to be good).
Unicode name used for test file in test bugs fclasses bug22125 is described (for possibility to check it).
src/BRepTools/BRepTools.cxx
src/Draw/Draw_VariableCommands.cxx
src/OSD/OSD_OpenFile.cxx
src/OSD/OSD_OpenFile.hxx
src/StepSelect/StepSelect_WorkLibrary.cxx
tests/bugs/fclasses/bug22125