1462 rv2 = certPrincipal->SetCommonName(NS_LossyConvertUTF16toASCII(orgName).get());
Which will totally break with a non-ascii but utf-8 Organization attribute... I guess I should file a PSM bug on that?
Just when I thought 1.7 would be the first release with correct non-ascii support with the previous bug corrected.
Can you both enter the bug, and provide the one line patch required as there's about nobody working on PSM ?
I think this should do it (but you're probably able to make the change in 5 seconds):
- rv2 = certPrincipal->SetCommonName(NS_LossyConvertUTF16toASCII(orgName).get());
+ rv2 = certPrincipal->SetCommonName(NS_ConvertUTF16toUTF8(orgName).get());
I wonder if there's a method by which one could find every place where Mozilla is talking to NSS and not using UTF-8 when it should.
_______________________________________________
mozilla-crypto mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-crypto
