From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Holler Date: Sun, 13 May 2012 10:07:07 +0200 Subject: [U-Boot] [PATCH] Ignore all Carriage Returns when importing an environment. In-Reply-To: <20120512211811.9CAED200049@gemini.denx.de> References: <1336720486-7424-1-git-send-email-holler@ahsoftware.de> <20120511190944.59F8A20348D@gemini.denx.de> <4FAE7232.1050407@ahsoftware.de> <20120512211811.9CAED200049@gemini.denx.de> Message-ID: <4FAF6BAB.5040900@ahsoftware.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello, Am 12.05.2012 23:18, schrieb Wolfgang Denk: > Thanks - but it adds restrictions to doing perfectly valid things. I > see the disadvantages significantly bigger than what we can win - keep > in mind, that dealing wqith DOS line endings is a topic that is > decades old. 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. Regards, Alexander