[U-Boot] [PATCH] Ignore all Carriage Returns when importing an environment.

Wolfgang Denk wd at denx.de
Sun May 13 11:27:46 CEST 2012


Dear Alexander Holler,

In message <4FAF6BAB.5040900 at ahsoftware.de> you wrote:
> 
> Not dealing with them too. ;)
> 
> Two other solutions come to mind: Expanding the if( '\r' ) so that it 
> only removes CRs if they are before LF or make \r possible in import and 
> use \r in export.

I think I would accept an option (configurable) to accept \r\n line
endings when importing text input.  For output, there shall always be
\n only.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Too much of anything, even love, isn't necessarily a good thing.
	-- Kirk, "The Trouble with Tribbles", stardate 4525.6


More information about the U-Boot mailing list