Commit b916901a authored by Ray Strode's avatar Ray Strode

jsauthority: add UTF8 suffix to renamed functions

parent 6b238724
......@@ -1295,7 +1295,7 @@ js_polkit_log (JSContext *cx,
goto out;
s = JS_EncodeString (cx, str);
JS_ReportWarning (cx, s);
JS_ReportWarningUTF8 (cx, s);
JS_free (cx, s);
ret = JS_TRUE;
......@@ -1391,7 +1391,7 @@ js_polkit_spawn (JSContext *cx,
if (!JS_GetArrayLength (cx, array_object, &array_len))
JS_ReportError (cx, "Failed to get array length");
JS_ReportErrorUTF8 (cx, "Failed to get array length");
goto out;
......@@ -1403,12 +1403,12 @@ js_polkit_spawn (JSContext *cx,
if (!JS_GetElement (cx, array_object, n, &elem_val))
JS_ReportError (cx, "Failed to get element %d", n);
JS_ReportErrorUTF8 (cx, "Failed to get element %d", n);
goto out;
if (!JSVAL_IS_STRING (elem_val))
JS_ReportError (cx, "Element %d is not a string", n);
JS_ReportErrorUTF8 (cx, "Element %d is not a string", n);
goto out;
s = JS_EncodeString (cx, JSVAL_TO_STRING (elem_val));
......@@ -1438,7 +1438,7 @@ js_polkit_spawn (JSContext *cx,
JS_ReportError (cx,
JS_ReportErrorUTF8 (cx,
"Error spawning helper: %s (%s, %d)",
error->message, g_quark_to_string (error->domain), error->code);
g_clear_error (&error);
......@@ -1464,7 +1464,7 @@ js_polkit_spawn (JSContext *cx,
g_string_append_printf (gstr, ", stdout=`%s', stderr=`%s'",
standard_output, standard_error);
JS_ReportError (cx, gstr->str);
JS_ReportErrorUTF8 (cx, gstr->str);
g_string_free (gstr, TRUE);
goto out;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment