nsAutoString   strtmp; strtmp.AssignWithConversion(genericString); const PRUnichar *ptrtmp = strtmp.get();
NS_ConvertASCIItoUTF16 strtmp(genericString);
Wallet_Localize(const char* genericString) {  nsresult ret;  nsAutoString v;  /* create a bundle for the localization */  nsCOMPtr<nsIStringBundleService> pStringService = do_GetService(NS_STRINGBUNDLE_CONTRACTID, &ret);  if (NS_FAILED(ret)) {#ifdef DEBUG    printf("cannot get string service\n");#endif    return ToNewUnicode(v);  }  nsCOMPtr<nsIStringBundle> bundle;  ret = pStringService->CreateBundle(PROPERTIES_URL, getter_AddRefs(bundle));  if (NS_FAILED(ret)) {#ifdef DEBUG    printf("cannot create instance\n");#endif    return ToNewUnicode(v);  }  /* localize the given string */  nsAutoString   strtmp; strtmp.AssignWithConversion(genericString);  const PRUnichar *ptrtmp = strtmp.get();  PRUnichar *ptrv = nsnull;  ret = bundle->GetStringFromName(ptrtmp, &ptrv);  if (NS_FAILED(ret)) {#ifdef DEBUG    printf("cannot get string from name\n");#endif    return ToNewUnicode(v);  }  v = ptrv;  nsCRT::free(ptrv);  /* convert # to newlines */  PRUint32 i;  for (i=0; i<v.Length(); i++) {    if (v.CharAt(i) == '#') {      v.SetCharAt('\n', i);    }  }  return ToNewUnicode(v);}