[心得] tintin2.00.8的中文bug修正
趁著還沒開始忙的時侯分享一下。
問題描述:
如果還有人在用tintin++玩mud(台灣的資源好少,只能用破破的英文去官網問>.<||),
會發現tintin 2.00.7以後,在action的判斷中存入的中文字,在那個action中使用時,
無法顯示(或者使用)正確的中文字。
舉例:
店小二說道:「ooxx正在杭州城附近。」
#action {^%+Sooxx正在%1附近。」$} {#showme {%1}} {5}
在mud上看到的會是「杭吒x7B城」,而不是「杭州城」
修正的方式:修改src中的tinexp.c,把518行附近的pti改成ptt,總共有4個pti而要改
原文===>
while (*ptt)
{
if (HAS_BIT(ses->flags, SES_FLAG_BIG5) && *pti & 128 && pti[1] != 0)
{
*pto++ = *pti++;
*pto++ = *pti++;
continue;
}
修改成===>
while (*ptt)
{
if (HAS_BIT(ses->flags, SES_FLAG_BIG5) && *ptt & 128 && ptt[1] != 0)
{
*pto++ = *ptt++;
*pto++ = *ptt++;
continue;
}
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.134.21.132
推
10/27 22:25, , 1F
10/27 22:25, 1F
→
10/28 07:07, , 2F
10/28 07:07, 2F
→
10/28 07:10, , 3F
10/28 07:10, 3F
→
10/28 07:23, , 4F
10/28 07:23, 4F
→
10/28 07:24, , 5F
10/28 07:24, 5F
→
10/28 07:25, , 6F
10/28 07:25, 6F
推
10/29 09:37, , 7F
10/29 09:37, 7F
推
11/02 15:51, , 8F
11/02 15:51, 8F
→
11/02 15:55, , 9F
11/02 15:55, 9F
→
11/05 11:27, , 10F
11/05 11:27, 10F
→
11/05 11:28, , 11F
11/05 11:28, 11F
mud 近期熱門文章
PTT遊戲區 即時熱門文章