[gjs: 1/6] deprecation: Refer to TextDecoder in ByteArray toString message
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 1/6] deprecation: Refer to TextDecoder in ByteArray toString message
- Date: Tue, 9 Aug 2022 05:09:59 +0000 (UTC)
commit f22c98e8e387bd320b919ea34a18860341173239
Author: Philip Chimento <philip chimento gmail com>
Date: Sun Jul 17 16:43:09 2022 -0700
deprecation: Refer to TextDecoder in ByteArray toString message
Instead of recommending to call ByteArray.toString(), we should
recommend using TextDecoder to convert Uint8Array to a string.
gjs/deprecation.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/gjs/deprecation.cpp b/gjs/deprecation.cpp
index c0382d596..ca034d9f6 100644
--- a/gjs/deprecation.cpp
+++ b/gjs/deprecation.cpp
@@ -34,8 +34,7 @@ const char* messages[] = {
"this would have interpreted the bytes of the array as a string, but that "
"is nonstandard. In the future this will return the bytes as "
"comma-separated digits. For the time being, the old behavior has been "
- "preserved, but please fix your code anyway to explicitly call ByteArray"
- ".toString(array).\n"
+ "preserved, but please fix your code anyway to use TextDecoder.\n"
"(Note that array.toString() may have been called implicitly.)",
// DeprecatedGObjectProperty:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]