Did this article resolve your question/issue?



-ulayout 3 corrupts extended characters

« Go Back


Title-ulayout 3 corrupts extended characters
URL Nameulayout-3-corrupts-extended-characters
Article Number000206704
EnvironmentOpenEdge-OEDK Premier Edition-Windows-windows 10

Product: OpenEdge
Version: 11.x, 12.x
OS: Windows
Question/Problem Description

-ulayout 3 corrupts extended characters

When using -ulayout 3 with the UTF-8 client and multi byte extended characters with string attributes, -ulayout with a value of 3 can corrupt the extended character.  

For example if the following code is run with -ulayout 2:


// U+6C49 Chinese Ideograph 
// 0xE6B189
    cIdeograph = CHR(15118729).                         

MESSAGE 'Ideograph' SKIP
    '--------------' SKIP
    'Character length:' LENGTH(cIdeograph, "CHARACTER") SKIP 
    'Byte length:' LENGTH(cIdeograph, "RAW") SKIP 
    'Column length:' LENGTH(cIdeograph, "COLUMN") SKIP 
    'Character:' cIdeograph SKIP(1)   
    " t1" "汉":T1 SKIP /* T1 shows nothing because one byte of a multi byte character is corruption */     
    " t2" "汉":T2 SKIP 
    " t3" "汉":T3 SKIP 

The result is:

With -ulayout 3 the result is:

Why is the 't3' variable blank?

Steps to Reproduce
Clarifying Information
The problem does not happen for any other values of -ulayout
Error Message
Defect NumberDefect OCTA-41438
Enhancement Number
The exact cause is not known at this time but it looks to be related to the text segment for variable t1 that doesn't display a value.  Remove the display of t1 from the code and the t3 value is displayed correctly.  
None at this time.
Use another value of -ulayout, for example 4.  
Last Modified Date11/26/2021 2:57 PM
Disclaimer The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages.