Ticket #36283

nkf insert strange code using option -WwMQ

Open Date: 2016-04-26 09:53 Last Update: 2016-08-02 16:20

Reporter:
(Anonymous)
Owner:
(None)
Type:
Status:
Closed
Component:
(None)
MileStone:
(None)
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Invalid
File:
None

Details

nkf makes reply that is different from ruby as follows. Could you please check this?

$ echo -n 一般社団法人情報通信技術委員会|nkf -WwMQ|tr = % %E4%B8%80%E8%88%AC%E7%A4%BE%E5%9B%A3%E6%B3%95%E4%BA%BA%E6%83%85%E5%A0%B1% %E9%80%9A%E4%BF%A1%E6%8A%80%E8%A1%93%E5%A7%94%E5%93%A1%E4%BC%9A

$ echo -n 一般社団法人情報通信技術委員会|ruby -r uri -ne 'print URI.escape $_' %E4%B8%80%E8%88%AC%E7%A4%BE%E5%9B%A3%E6%B3%95%E4%BA%BA%E6%83%85%E5%A0%B1%E9%80%9A%E4%BF%A1%E6%8A%80%E8%A1%93%E5%A7%94%E5%93%A1%E4%BC%9

Environment Ubuntu 14.04LTS (amd64) $ nkf -v Network Kanji Filter Version 2.1.3 (2013-11-22) Copyright (C) 1987, FUJITSU LTD. (I.Ichikawa). Copyright (C) 1996-2013, The nkf Project.

Ticket History (2/2 Histories)

2016-04-26 09:53 Updated by: None
  • New Ticket "nkf insert strange code using option -WwMQ " created
2016-08-02 16:20 Updated by: naruse
  • Resolution Update from None to Invalid
  • Status Update from Open to Closed
  • Ticket Close date is changed to 2016-08-02 16:20
Comment

nkf's mime_encode automatically inserts line feed, and in q-encode nkf escape the line feed with soft line. It is why they differ.

Attachment File List

No attachments

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login