> Message: 4 > Date: Sun, 30 Nov 2003 12:48:07 -0800 > From: "Randy.Dunlap" <[EMAIL PROTECTED]> > To: "Sam J.C. Lu" <[EMAIL PROTECTED]> > Cc: [EMAIL PROTECTED] > Subject: Re: [Linux-usb-users] Linux-usb-users] why character '0x0a' be > translate to '0x0d' '0x0a' while I print a job to USB printer > Organization: OSDL > > On Fri, 28 Nov 2003 11:27:47 +0800 "Sam J.C. Lu" <[EMAIL PROTECTED]> wrote: > > | There are strange while I print a job to USB port, I found all the character > | "0x0a" be > | translate to "0x0d" "0x0a". does someone know why and how to fixed or avoid > | this > | translation. > | > | Thanks in any advice! > > I don't know of anything in the USB subsystem that does this. > It sounds like something that a printer "filter" or filter driver > would do. > > -- > ~Randy > Maybe you already knew this, but "0x0a" is a linefeed and "0x0d" is a carriage return. LF is the UNIX way of storing end of lines while CRLF is the Windows way of storing them. So what's happening is it's translating Unix text to Windows (DOS) text. Maybe that gives you a hint.
------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users