On 01-07-2012 23:13, Paul Vinkenoog wrote: > On big-endian machines, UUID_TO_CHAR2 should work fine, because big-endian > host order is the same as network order (and also "natural" order, the way we > write our binary, octal, decimal and hexadecimal numbers).
All your analysis seems right for me, except this one. I think UUID_TO_CHAR2 is broken in big-endian too, but that doesn't matter, as this function is not in stable versions. I already wrote the conversion functions using directly the byte array that come from the user, so it must be right. I'd still prefer someone testing this (http://pastebin.com/raw.php?i=t2eREynZ) on big-endian anre reporting the result. I guess the functions are wrong but symmetric on big-endian. If they are symmetric, we should better create the new functions. If they're bugged (i.e., uuid_to_char(char_to_uuid(x)) <> x), them we should just fix the original functions. Adriano ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel