From b4944f4520f4de1f11f268003eae8fb3361b4810 Mon Sep 17 00:00:00 2001 From: albertony <12441419+albertony@users.noreply.github.com> Date: Mon, 25 Oct 2021 16:51:13 +0200 Subject: [PATCH] docs/librclone: document that strings are utf8 encoded --- librclone/librclone.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/librclone/librclone.go b/librclone/librclone.go index 90c22a04a..6b3674df3 100644 --- a/librclone/librclone.go +++ b/librclone/librclone.go @@ -68,12 +68,14 @@ type RcloneRPCResult struct { //nolint:deadcode // to the rclone API as described in https://rclone.org/rc/ // // method is a string, eg "operations/list" -// input should be a serialized JSON object -// result.Output will be returned as a serialized JSON object +// input should be a string with a serialized JSON object +// result.Output will be returned as a string with a serialized JSON object // result.Status is a HTTP status return (200=OK anything else fail) // -// Caller is responsible for freeing the memory for result.Output, -// result itself is passed on the stack. +// All strings are UTF-8 encoded, on all platforms. +// +// Caller is responsible for freeing the memory for result.Output +// (see RcloneFreeString), result itself is passed on the stack. // //export RcloneRPC func RcloneRPC(method *C.char, input *C.char) (result C.struct_RcloneRPCResult) { //nolint:golint