Bug 65864 - nkf [file] doesn't give output anymore
Summary: nkf [file] doesn't give output anymore
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: glibc
Version: 1.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 67217
TreeView+ depends on / blocked
 
Reported: 2002-06-03 08:09 UTC by Jens Petersen
Modified: 2008-05-01 15:38 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-06-25 05:30:57 UTC
Embargoed:


Attachments (Terms of Use)
strace output (1.83 KB, text/plain)
2002-06-03 08:11 UTC, Jens Petersen
no flags Details
patch to let glibc allocate the input file buffer (404 bytes, patch)
2002-06-03 08:53 UTC, Jens Petersen
no flags Details | Diff

Description Jens Petersen 2002-06-03 08:09:12 UTC
Description of Problem:
When nkf is applied to a filename it only "outputs" a sequence of "\o"s
(16KiB of them).

Version-Release number of selected component (if applicable):
(nkf-1.92-8)

How Reproducible:
Every time.

Steps to Reproduce:
1. nkf some/file

Actual Results:
No output appears on a terminal.

Expected Results:
The filtered output should appear on the terminal.

Additional Information:
"nkf < some/file" works correctly without any problem.

I think this problem is likely caused by the change of malloc in glibc-2.3.

I spotted this problem because semi.spec uses nkf to convert the encoding of
its Japanese info file, and this problem breaks that.

Comment 1 Jens Petersen 2002-06-03 08:11:23 UTC
Created attachment 59344 [details]
strace output

Comment 2 Jens Petersen 2002-06-03 08:53:58 UTC
Created attachment 59345 [details]
patch to let glibc allocate the input file buffer

Comment 3 Jens Petersen 2002-06-03 08:57:37 UTC
With this patch it seems to work fine, though I don't really see why it
doesn't work with the buffer nkf allocates for input.

Comment 5 Jens Petersen 2002-06-25 05:30:49 UTC
a workaround like the above was added to nkf in 1.92-9


Comment 6 Jakub Jelinek 2002-07-03 18:55:55 UTC
This should be fixed in glibc-2.2.90-14.

Comment 7 Jens Petersen 2002-07-08 08:33:58 UTC
Thanks.  I checked it is working, by rebuilding nkf without the
above patch, and indeed it appears to work just fine. So I guess
the patch could be dropped the next time the nkf package is updated.


Note You need to log in before you can comment on or make changes to this bug.