Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 500550 - sys-apps/sed-4.2*: unix2dos example is broken
Summary: sys-apps/sed-4.2*: unix2dos example is broken
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-06 19:20 UTC by Ulrich Müller
Modified: 2014-02-08 13:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Müller gentoo-dev 2014-02-06 19:20:49 UTC
The ebuild installs unix2dos and dos2unix examples from FILESDIR into /usr/share/doc/. unix2dos is broken:

   $ { echo foo; echo bar; } | ./unix2dos | hexdump -C
   00000000  66 6f 6f 12 0a 62 61 72  12 0a                    |foo..bar..|
   0000000a

Should be 0x0d 0x0a (CR LF) not 0x12 0x0a (DC2 LF).


Besides, I don't see why these examples would be needed. Maybe they could just be deleted?