MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0025302Open CASCADE[OCCT] OCCT:Foundation Classespublic2014-10-01 11:282017-08-01 15:57
Reporterpdn 
Assigned Toabv 
PrioritynormalSeverityminor 
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Version[OCCT] 6.8.0 
Target Version[OCCT] UnscheduledFixed in Version 
Summary0025302: Incorrect locale and unicode support in Draw console
DescriptionDraw tcl console process locale strings incorrectly. The files with unicode or locale symbols are processed properly.
Steps To ReproducePlease use the following script:

set s сабака
put $s

set s [encoding convertto utf-8 сабака]
encoding convertfrom utf-8 $s

vdrawtext сабака 0 0 0 255 255 255 0 0 0 1 50 0 Mona 1




TagsNo tags attached.
Test case numberNot needed
Attached Filespng file icon dtext-codec.png (7,347 bytes) 2014-10-19 22:55

- Relationships
related to 0022484closedbugmaster UNICODE characters support. 
related to 0026380closedbugmaster OSD_SharedLibrary - handle UTF-8 file paths 

-  Notes
(0033307)
shoogen (reporter)
2014-10-19 22:46

which encoding do a have to use for "dtext"?
(0033311)
abv (manager)
2014-10-20 10:24

Hello Sebastian,

Command "dtext" is old one and it uses system API to draw text (TextOut on Windows and XDrawString on X11). It will work correctly only for strings containing plain Ascii text (in range 0-127). Please use vdrawtext command instead. If you have strong need to use old DRAW graphic interface, you can try to improve it to support Unicode...

- Issue History
Date Modified Username Field Change
2014-10-01 11:28 pdn New Issue
2014-10-01 11:28 pdn Assigned To => abv
2014-10-01 11:28 pdn Relationship added related to 0022484
2014-10-19 22:46 shoogen Note Added: 0033307
2014-10-19 22:55 shoogen File Added: dtext-codec.png
2014-10-20 10:24 abv Note Added: 0033311
2015-06-29 20:15 kgv Relationship added related to 0026380
2017-08-01 15:57 mkv Test case number => Not needed
2017-08-01 15:57 mkv Status new => closed
2017-08-01 15:57 mkv Resolution open => no change required


Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker