diff options
author | Ray Strode <rstrode@redhat.com> | 2018-03-23 10:48:44 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2018-03-28 16:43:52 -0400 |
commit | b916901a54afadadd876ac2753e27933a6c69077 (patch) | |
tree | 10070b8c2e343fec70c46e01446187e6a51459c9 | |
parent | 6b238724829960829f032cd1f94af5556f78884e (diff) | |
download | polkit-b916901a54afadadd876ac2753e27933a6c69077.tar.gz |
jsauthority: add UTF8 suffix to renamed functions
-rw-r--r-- | src/polkitbackend/polkitbackendjsauthority.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/polkitbackend/polkitbackendjsauthority.cpp b/src/polkitbackend/polkitbackendjsauthority.cpp index 0c1ec44..ad2dcd2 100644 --- a/src/polkitbackend/polkitbackendjsauthority.cpp +++ b/src/polkitbackend/polkitbackendjsauthority.cpp @@ -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, &standard_error, &error)) { - 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; } |