Hi,

today, I removed the *UCS2* string conversion functions on trunk. The reason for this is that all the wide strings in Mozilla are really UTF-16, and the UCS-2 variants just called the UTF-16 functions anyway. Only having one variant makes it clearer what the encoding really is.

This affected these functions/classes:
       NS_ConvertASCIItoUCS2      => NS_ConvertASCIItoUTF16
       NS_ConvertUTF8toUCS2       => NS_ConvertUTF8toUTF16
       NS_LossyConvertUCS2toASCII => NS_LossyConvertUTF16toASCII
       NS_ConvertUCS2toUTF8       => NS_ConvertUTF16toUTF8
       CopyASCIItoUCS2            => CopyASCIItoUTF16
       CopyUCS2toASCII            => LossyCopyUTF16toASCII

This does not affect the 1.8 branch, and should not affect embeddors either (who should use nsStringAPI functions).

This happened as part of https://bugzilla.mozilla.org/show_bug.cgi?id=183156

-biesi
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to