mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-12 02:40:22 +08:00
Construction of TCollection_ExtendedString from plain C string is fixed to consider input string as UTF-8 in several places (identified as described in notes to #31113). Message_MsgFile is corrected to load resource file as UTF-8 (unless it has BOM indicating use of UTF-16). Added tests for use of Unicode in some DRAW commands (bugs demo bug14673_*)
23 lines
932 B
Plaintext
23 lines
932 B
Plaintext
puts "# ============================================================"
|
|
puts "# 0014673: Provide true support for Unicode symbols"
|
|
puts "# ============================================================"
|
|
puts ""
|
|
puts "# Check that resource file with messages saved in file with UTF-8"
|
|
puts "# encoding is correctly loaded and processed"
|
|
|
|
puts "# Prepare resource file to be used instead of standard XSTEP.us,"
|
|
puts "# with Russian translation of one message"
|
|
dsetenv CSF_LANGUAGE ru
|
|
dsetenv CSF_XSMessage $imagedir
|
|
set message "Б-сплайн поверхность не является гладкой"
|
|
set fd [open $imagedir/XSTEP.ru w]
|
|
fconfigure $fd -encoding utf-8
|
|
puts $fd ".XSTEP_1\nMessage used to check file load\n.IGES_1250\n$message"
|
|
close $fd
|
|
|
|
puts "# Load IGES file which is known to generate the message, and check it"
|
|
puts "REQUIRED 14673 ALL: $message"
|
|
pload XSDRAW
|
|
igesbrep [locate_data_file hammer.iges] a *
|
|
tpstat c
|