[Grub-dev] Small error in protocol definition

chris hall followingthepath at gmail.com
Mon Jan 19 10:18:54 UTC 2009


In windows \r\n is the native newline character.
If you open a file in python in text mode (default) whenever you use a \n it
gets translated to a \r.
When you open a file in binary mode, a \n is truly a \n

This means that if you open a file in text mode (default) every newline
character you use instead of being \n (1 byte long) it is actually \r\n (2
bytes long)

Also, the grub client opens its arcfile in w mode, which is text mode.
So in windows systems this means that the \n characters are being
transferred to \r\n

Could this explain the 401 errors?
I cannot beleive this has not occures to me before.
-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wikia.com/pipermail/grub-dev/attachments/20090119/06159acf/attachment.html 


More information about the Grub-dev mailing list