Re: [rfc][icedtea-web] read properties values from C part - libraryedition :)

Jacob Wisor gitne at excite.co.jp
Fri Feb 22 17:01:42 PST 2013


Hello Jiri,

> static char*  getPropertyValue(char* c, char* dest)
> static int  findProperty(char* fileName, char* property, char* dest)

Please consinder that these functions have to handle u encoded and any other  escape character encoded property names and values correctly.
Trimming off white spaces at the end of values does not comply with the property file specification. Just consider paths to files or folders that have trailing white spaces in their names. In this case getPropertyValue() will return wrong values.

Regards,
Jacob



More information about the distro-pkg-dev mailing list