diff --git a/mozilla/xpcom/tests/TestObserverService.cpp b/mozilla/xpcom/tests/TestObserverService.cpp index 7b9f5a770da..32f07fbad7d 100644 --- a/mozilla/xpcom/tests/TestObserverService.cpp +++ b/mozilla/xpcom/tests/TestObserverService.cpp @@ -59,7 +59,7 @@ static void testResult( nsresult rv ) { } void printString(nsString &str) { - printf("%s", str.get()); + printf("%s", NS_ConvertUTF16toUTF8(str).get()); } class TestObserver : public nsIObserver, public nsSupportsWeakReference {