Unicode support in KDS3.0?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Unicode support in KDS3.0?

ソリューションへジャンプ
785件の閲覧回数
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 解決策
653件の閲覧回数
daweiyou
NXP Employee
NXP Employee

I found one solution from previous topic:

add below compile parameter for GCC,

-fshort-wchar

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
654件の閲覧回数
daweiyou
NXP Employee
NXP Employee

I found one solution from previous topic:

add below compile parameter for GCC,

-fshort-wchar

0 件の賞賛
返信