[Nut-upsdev] Character maps

Arjen de Korte nut+devel at de-korte.org
Tue Jan 31 15:45:29 UTC 2006


Maybe a stupid question, but how paranoid should I be when it comes to
character maps? Is it safe to assume that if I want '\x41' to be sent to a
UPS, that this equals sending the 'A' character? In other words, is it
considered portable that (at least for the output of the serial functions)
we use an ASCII character map? Otherwise, on (for example) an EBCDIC
system (do these still exist?) you're in for a surprize, since sending an
'A' will transmit '\0xC1'. Or do the serial function handle this?

Regards, Arjen
-- 
Eindhoven - The Netherlands
Key fingerprint - 66 4E 03 2C 9D B5 CB 9B  7A FE 7E C1 EE 88 BC 57



More information about the Nut-upsdev mailing list