diff options
author | Phil Jones <philj56@gmail.com> | 2022-10-23 13:24:48 +0100 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2022-10-23 13:24:59 +0100 |
commit | 3bbd8ff839354a6f488c8481d5e6336a3f637cee (patch) | |
tree | f793acfea9c8115d30bd00d1a7dde5fc9fc079d7 /src/main.c | |
parent | dd3a4a84d6676b51025e8feeb7af662a07b1e73c (diff) |
Replace wchar and friends with Unicode handling.
All text handling should now be explicitly UTF-8 or UTF-32, removing the
ambiguity around wchar_t and related functions.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -12,8 +12,6 @@ #include <unistd.h> #include <wayland-client.h> #include <wayland-util.h> -#include <wchar.h> -#include <wctype.h> #include <xkbcommon/xkbcommon.h> #include "tofi.h" #include "compgen.h" @@ -816,7 +814,7 @@ static bool do_submit(struct tofi *tofi) if (tofi->require_match || entry->drun) { return false; } else { - printf("%ls\n", entry->input); + printf("%s\n", entry->input_utf8); return true; } } @@ -874,7 +872,7 @@ int main(int argc, char *argv[]) .font_name = "Sans", .font_size = 24, .prompt_text = "run: ", - .hidden_character_mb = "*", + .hidden_character_utf8 = u8"*", .padding_top = 8, .padding_bottom = 8, .padding_left = 8, |