View Issue Details

IDProjectCategoryView StatusLast Update
0025302Open CASCADEOCCT:Foundation Classespublic2017-08-01 15:57
ReporterpdnAssigned Toabv 
PrioritynormalSeverityminor 
Status closedResolutionno change required 
Product Version6.8.0 
Target VersionUnscheduled 
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 Files

  • dtext-codec.png (7,347 bytes)

Relationships

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

Activities

shoogen

2014-10-19 22:46

reporter   ~0033307

which encoding do a have to use for "dtext"?

shoogen

2014-10-19 22:55

reporter  

dtext-codec.png (7,347 bytes)

abv

2014-10-20 10:24

manager   ~0033311

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