Skip Menu |

This queue is for tickets about the Data-GUID-Any CPAN distribution.

Report information
The Basics
Id: 81583
Status: resolved
Priority: 0/
Queue: Data-GUID-Any

People
Owner: Nobody in particular
Requestors: BKATZUNG [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: output case violates "standards"
Hexadecimal values should output lowercase for values 'a' through 'f' per RFC 4122 Section 3 ("The hexadecimal values "a" through "f" are output as lower case characters and are case insensitive on input.") and ITU-T Rec. X.667 (09/2004) Section 6.5.4 ("Software generating the hexadecimal representation of a UUID shall not use upper case letters.")
On Fri Nov 30 15:59:40 2012, BKATZUNG wrote: Show quoted text
> Hexadecimal values should output lowercase for values 'a' through 'f' > per RFC 4122 Section 3 ("The hexadecimal values "a" through "f" are > output as lower case characters and are case insensitive on input.") and > ITU-T Rec. X.667 (09/2004) Section 6.5.4 ("Software generating the > hexadecimal representation of a UUID shall not use upper case letters.")
This was, IIRC, done to be consistent with Data::UUID, which uses uppercase. I'm not sure the code should change at this point, but it should be documented. I need to ponder it more.
On Fri Nov 30 17:05:16 2012, DAGOLDEN wrote: Show quoted text
> This was, IIRC, done to be consistent with Data::UUID, which uses
uppercase. Show quoted text
> > I'm not sure the code should change at this point, but it should be > documented. > > I need to ponder it more.
Perhaps call an "xc" function instead of "uc" that returns lower case if a ":lower_case" flag was set upon import, else return upper case for backward compatibility (as suggested by Michael Wolf in https://rt.cpan.org/Ticket/Display.html?id=64758 for Data::UUID).
I have uploaded 0.004, which documents the variance from the RFC and allows lower case output by setting $Data::GUID::Any::UC to a false value.