From 107d7e652f02f205e12befd9a16d2476a594a150 Mon Sep 17 00:00:00 2001 From: Lyude Date: Thu, 13 Oct 2016 13:15:55 -0400 Subject: [PATCH] gskill: Specify the correct encoding for profile names Only managed to notice then while working on enabling/disabling profiles. Somewhere down the line the encoding we pass to ratbag_utf8_to_enc() managed to get typoed, causing it to actually fail and not show anything because of the iconv helpers not returning negative error codes. --- src/driver-gskill.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/driver-gskill.c b/src/driver-gskill.c index da43c696..75b27956 100644 --- a/src/driver-gskill.c +++ b/src/driver-gskill.c @@ -580,7 +580,7 @@ gskill_write_profile(struct ratbag_device *device, "Setting profile name to \"Ratbag profile %d\"\n", report->profile_num); rc = ratbag_utf8_to_enc(report->name, sizeof(report->name), - "UTF16-LE", + "UTF-16LE", "Ratbag profile %d", report->profile_num); if (rc < 0)