Unicode support in KDS3.0?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unicode support in KDS3.0?

Jump to solution
632 Views
daweiyou
NXP Employee
NXP Employee

Hi:

 

The KDS define unicode string as 4bytes length, but which will waste 2bytes for one character.

How to define Unicode character for 2bytes? thx.

 

in <stddef.h>, there is definition.

#ifndef __WCHAR_TYPE__

#define __WCHAR_TYPE__ int

#endif

#ifndef __cplusplus

typedef __WCHAR_TYPE__ wchar_t;

Labels (1)
0 Kudos
1 Solution
500 Views
daweiyou
NXP Employee
NXP Employee

I found one solution from previous topic:

add below compile parameter for GCC,

-fshort-wchar

View solution in original post

0 Kudos
1 Reply
501 Views
daweiyou
NXP Employee
NXP Employee

I found one solution from previous topic:

add below compile parameter for GCC,

-fshort-wchar

0 Kudos