Gecko:Effective TLD Service: Difference between revisions

Line 10: Line 10:


* The file should be named '''effective_tld_names.dat'''
* The file should be named '''effective_tld_names.dat'''
** If a file with that name is found in the user's profile directory, it will be used.
** A file with that name in the application's "res" directory will always be used.
** Otherwise, the file from the application's "res" directory will be used.
** In addition, if a file with the same name is found in the user's profile directory, its contents will also be used, as though they were appended to the system file.
* It should use the UTF-8 text encoding.  Since UTF-8 is a superset of 7-bit ASCII (i.e., plain text with no diacritics or other special characters), a 7-bit ASCII file is also acceptable.
* It should use the UTF-8 text encoding.  Since UTF-8 is a superset of 7-bit ASCII (i.e., plain text with no diacritics or other special characters), a 7-bit ASCII file is also acceptable.
* Rules will be normalized by nsIDNService::Normalize, which implements RFC 3454.  For ASCII, that means they're not case-sensitive; other normalizations are applied for other characters.
* Rules will be normalized by nsIDNService::Normalize, which implements RFC 3454.  For ASCII, that means they're not case-sensitive; other normalizations are applied for other characters.
23

edits