For the sake of completeness, the file containing all these escape sequences is generated by the bootlogd daemon (bootlog package in the debian family) which captures all the colorized messages sent to the console during boot. On the console, these messages are first displayed like the following line:
[....] Starting periodic command scheduler: cron
then, when the service or command is executed, an escape sequence is sent to the console to reposition the cursor at the beginning of the line and prints ok, fail, info, warn etc...
[ ok ] Starting periodic command scheduler: cron.
All these messages are captured by the bootlogd daemon and written to a file with all its escape sequences including the repositioning one. No problem except that the ^[ must be replaced by octal 033 to have the file correctly displayed. But, because there is a catch, the daemon also add a date stamp in front of the message without changing the coordinates of the cursor repositioning sequence. Consequently, the ok, fail etc... messages overwrite part of the date stamp. Not nice.
Fri May 25 17:13:01 2012: [....] Starting periodic command scheduler: cron
becomes...
[ ok ay 25 17:13:01 2012: [....] Starting periodic command scheduler: cron.
The solution is to change that cursor positioning sequence. By try and error I found that sequence to be ^[1G. The following sed command finally get the job done:
sed 's/\^\[/\o33/g;s/\[1G\[/\[27G\[/' /var/log/boot
The bootlogd daemon should purge all the escape sequence before sending the console messages to the file. May we call this a bug?
This "bug" might also be present in all Debian heirs like Ubuntu, Mint etc...
^[are replaced by its octal equivalent033see my own answer below.