ASCII colors in MOTD

Kalin KOZHUHAROV kalin at
Thu Jul 6 13:01:22 GMT 2006

Hi all,

For some time I noticed that my rsync server is not showing a colorfull MOTD...

Researching a bit, it turns out to be a problem since rsync-2.6.7 (rsync-2.6.6 is OK).

Looking at the NEWS:
    - The way rsync escapes unreadable characters has changed.  First, rsync
      now has support for recognizing valid multibyte character sequences in
      your current locale, allowing it to escape fewer...

So apparently this is to be blamed. Can anybody at least confirm this, or should I
directly file a bug?

For example you can see my MOTD by:

	rsync -v rsync://

It used to be a sleeping magenta cat on green grass...
Now the escape is escaped and becomes:

\#033[35m      |\      _.,,---,._       \#033[33m/                 \
\#033[35mZZzz. /,`.-'`'    -.  ;-;;,_   \#033[33m\ Kanagawa, Japan /
\#033[35m     |,4-  ) )-,_. ,\ (  `'-'  \#033[33m \               / 
\#033[35m    '---''(u/--'  `-'\_)       \#033[33m  \_____________/  
\#033[32m  \#033[33m

AFAIR, this escaping was intended only for filenames, right?
And BTW, adding -8 does not change anything.


|[ ~~~~~~~~~~~~~~~~~~~~~~ ]|
+-> <-+
|[ ______________________ ]|

More information about the rsync mailing list