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.
This commit is contained in:
Lyude
2016-10-13 13:15:55 -04:00
committed by Peter Hutterer
parent 7e8d40b57a
commit 107d7e652f

View File

@@ -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)