mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user