Unicode support in KDS3.0?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Unicode support in KDS3.0?

跳至解决方案
807 次查看
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;

标签 (1)
0 项奖励
回复
1 解答
675 次查看
daweiyou
NXP Employee
NXP Employee

I found one solution from previous topic:

add below compile parameter for GCC,

-fshort-wchar

在原帖中查看解决方案

0 项奖励
回复
1 回复
676 次查看
daweiyou
NXP Employee
NXP Employee

I found one solution from previous topic:

add below compile parameter for GCC,

-fshort-wchar

0 项奖励
回复