gService = do_GetService(kImportServiceCID, &rv);
gService = do_GetService(NS_IMPORTSERVICE_CONTRACTID, &rv);
static void ConvertToUnicode(const char *pStr, nsString &dist){	nsresult rv;	if (!gService)		gService = do_GetService(kImportServiceCID, &rv);	if (gService)		rv = gService->SystemStringToUnicode(pStr, dist);	if (NS_FAILED(rv))	{		// XXX bad cast		NS_ASSERTION(NS_SUCCEEDED(rv), "decoding method may occur bad cast\n");		dist.AssignWithConversion(pStr);	}}