mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
System console is configured at DRAW start to use UTF-8 encoding, for cout and cin to deal correctly with Unicode symbols. Use of std::wcout is avoided as it leads to corrupted output. Command testgrid is improved to enforce UTF-8 encoding in child DRAW processes to preserve Unicode symbols in captured output. Test bugs fclasses bug22125 is refactored: - avoid dependency on external data file - avoid producing snapshot - check that Unicode name of the file created by OCCT procedure matches the name interpreted by Tcl functions
24 lines
745 B
Plaintext
24 lines
745 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 filename "${test_image}_[encoding convertfrom utf-8 \xE6\x9C\x89\xE7\x94\xA8].igs"
|
|
|
|
puts "Test saving file with non-ascii file name: $filename"
|
|
file delete -force ${imagedir}/$filename
|
|
|
|
box b 10 10 10
|
|
brepiges b ${imagedir}/$filename
|
|
igesbrep ${imagedir}/$filename result *
|
|
|
|
if { ! [file exists ${imagedir}/$filename] } {
|
|
puts "Error: file is not found with expected name \"${imagedir}/$filename\""
|
|
}
|