[GRASS-dev] r58200 (attempt to fix failure when user name contains non-ascii characters)

Glynn Clements glynn at gclements.plus.com
Tue Nov 12 07:37:08 PST 2013


What problem is it trying to fix?

And how does it do that (if it does actually work)?

In general, explicit encoding/decoding only makes sense when either:

a) you're given a unicode string but need a byte string
b) you're given a byte string but need a unicode string
c) you're given a byte string in one encodingbut need a byte string in
a different encoding.

Taking a byte string, converting it to unicode using the locale's
default encoding, then converting it back to a byte string using the
same encoding achieves nothing (but creates additional possibilities
for failure in the event that the selected encoding is incorrect).

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list