On 20 November 2014 23:00, Linus Torvalds <[email protected]> wrote: > Of course, the right solution would be to just do this right in > libdivecomputer.c and have libdivecomputer just format the string > right in the first place. Using, say, DC_STRING_FIELD. >
can't really comment much on the DC topic itself, i think NULL terminated UTF-8 encoded strings is the right thing to do when it comes to down to "serial numbers", because they are not numbers but codes - in theory with non-iterative parts of any possible language and encoding. i've grown up seeing products with pretty long serial numbers with non ASCII characters (wait until the russians get a peace of the DC market) and i'm pretty sure some of those will not fit in an uint32_t. now, of course, all text is also numbers, but still... lubomir -- _______________________________________________ subsurface mailing list [email protected] http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
