sudo lshw > filename - can't open in gedit

sktsee sktsee at tulsaconnect.com
Wed Jan 16 22:04:04 UTC 2008


On Wed, 2008-01-16 at 12:49 -0800, NoOp wrote:
> On 01/16/2008 11:41 AM, NoOp wrote:
> > On 01/16/2008 09:34 AM, sktsee wrote:
> > 
> >> Gedit did the same thing on my machine. It's caused by some null
> >> characters being included in the output from lshw, specifically within
> >> the serial number string from my cdrom device. I believe that the null
> >> characters fool gedit into thinking the file is a binary data file, and
> >> gedit won't edit binary files IIRC. After removing the null characters
> >> and re-saving the file with vim, gedit has no problem with the file.
> >> 
> >> lshw probably should strip out the null characters or replace them with
> >> spaces before sending to standard out.
> >> 
> > 
> > Ah... thanks. Given that I'm not the only one, I'll file a bug report
> > thanks again.
> > 
> > Gary
> > 
> > 
> 
> Bug report filed:
> 
> https://bugs.launchpad.net/ubuntu/+source/lshw/+bug/183620
> 
> Thanks sktsee.
> 

You're welcome. Also, I added a comment to your report confirming the
bug.

-- 
sktsee





More information about the ubuntu-users mailing list