Comment 53 for bug 85579

Revision history for this message
In , Nhottanscp (nhottanscp) wrote :

I am not sure why there are two versions. But is that possible to convert to the
OS charset instead of AssignWithConversion? If the conversion fails then the
name has to be hashed.

 nsresult NS_MsgHashIfNecessary(nsCAutoString &name)
 {
+ nsAutoString autoStr;
+ autoStr.AssignWithConversion(name);
+ nsresult rv = NS_MsgHashAutoStringIfNecessary(autoStr);