포럼: 公開討議 (Thread #30335)

nkf 2.1.2 (2011-09-11 20:21 by 河野康司 #59534)

河野と申します。

nkf 2.1.2 のコンパイル時のテストで Fail が出ます。
(perl モジュールも同じ)

test_data/q-encode-utf-8 Fail
*** tmp.result.bad 2011年 9月 11日 ((日))
--- tmp.expect.bad 2011年 9月 11日 ((日))
***************
*** 1,3 ****
! 0000000 244 242 244 244 244 246 244 250 244 252 \n 244 253 244 255 244
! 0000020 257 244 261 244 263 \n
! 0000026
--- 1,3 ----
! 0000000 343 201 202 343 201 204 343 201 206 343 201 210 343 201 212 \n
! 0000020 343 201 213 343 201 215 343 201 217 343 201 221 343 201 223 \n
! 0000040

---
見てみると、デコードはちゃんとできているようで、
テスト時の expect データが UTF で作成されるのが原因みたいです。

# 私の環境は LANG が EUC です。

実際、LANG を UTF にしてコンパイルすると全部通ります。

以上、ご報告です。

Reply to #59534×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: nkf 2.1.2 (2011-09-11 21:48 by naruse #59537)

テストのミスで、nkf -w とすべき所、-w を抜かしてしまっていました。
ecf2a983ff で修正しています。
Reply to #59534

Reply to #59537×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: nkf 2.1.2 (2011-09-12 21:42 by 河野康司 #59553)

これは気がつきませんで失礼いたしました。
「ソース」のほうもチェックするようにいたします。
ありがとうございました。
Reply to #59534

Reply to #59553×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login