[BusyBox] init syslog messages have ^M

Bertrand Mollinier Toublet bertrand at sdesigns.com
Wed Nov 24 20:00:46 UTC 2004


David Meggy wrote:
> ^M is a carriage return.  Unix ends all lines in a carriage return. 
> Dos/Windows ends all lines in Carriage Return and Line Feed.  Macs end
> all lines with Line Feed.
> 
Well, ok, but there are several things to consider. In C, the actual 
end-of-line character of the platform doesn't matter. It is all 
abstracted as '\n' (line feed) in the code and the compiler produces 
whatever is appropriate for the platform it compiles for.

An explicit '\r' in C code thus doesn't make much sense.

-- 
Bertrand Mollinier Toublet | Sigma Designs, Inc.
bertrand at sdesigns.com      |     (408) 957 9847



More information about the busybox mailing list