diff options
author | Ray Strode <rstrode@redhat.com> | 2018-03-23 10:48:44 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2018-04-03 14:16:28 -0400 |
commit | 9ae27dec3e58c1cc55d91cdf178f1d3e5adb2d07 (patch) | |
tree | f5e20ebb8a178a0615f0251b093c3a1315bfa504 | |
parent | b6686d08e46e9e9e464ff0a3cee31bf94185b556 (diff) | |
download | polkit-9ae27dec3e58c1cc55d91cdf178f1d3e5adb2d07.tar.gz |
jsauthority: add UTF8 suffix to renamed functions
Signed-off-by: Ray Strode <rstrode@redhat.com>
https://bugs.freedesktop.org/show_bug.cgi?id=105865
-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 a3a21f1..e8714cf 100644 --- a/src/polkitbackend/polkitbackendjsauthority.cpp +++ b/src/polkitbackend/polkitbackendjsauthority.cpp @@ -1300,7 +1300,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; @@ -1396,7 +1396,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; } @@ -1408,12 +1408,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)); @@ -1443,7 +1443,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); @@ -1469,7 +1469,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; } |