mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-04 18:06:22 +03:00
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).
21 lines
693 B
Plaintext
21 lines
693 B
Plaintext
puts "=========="
|
|
puts "OCC22125"
|
|
puts "=========="
|
|
puts ""
|
|
################################################################
|
|
# TCollection_ExtendedString: conversion from UTF-8 to unicode
|
|
################################################################
|
|
|
|
pload XDE
|
|
|
|
# words "it works" translated to Traditional Chinese by Google Translate
|
|
set s [encoding convertfrom utf-8 "\xE6\x9C\x89\xE7\x94\xA8"]
|
|
|
|
igesbrep [locate_data_file bug22125_Part1_badname.igs] a *
|
|
brepiges a ${imagedir}/Part1_badname_$s.igs
|
|
igesbrep ${imagedir}/Part1_badname_$s.igs result *
|
|
|
|
file delete -force [glob -nocomplain ${imagedir}/Part1_badname_*.igs]
|
|
|
|
checkview -display result -2d -path ${imagedir}/${test_image}.png
|