13 Issues

13.1 Linux Issues

UTF-8 Comparison and Sort Problems

Wafl attempts to use the en_US.UTF-8 locale. If it is not available, the closest available one will be used. However, that may lead to unexpected results.

To check the available locales, run:

locale -a

To check which locales are used by Wafl, run:

wl -code "strLocale()"
wl -code "utf8Locale()"

To install the en_US.UTF-8 locale, use the following commands (or equivalent for your Linux distribution):

sudo apt update
sudo apt install locales
sudo locale-gen en_US.UTF-8

SDL Misconfiguration

On some Linux distributions, when using the SDL library in Wafl, an error message like this may be displayed:

X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  25 (X_SendEvent)
  Resource id in failed request:  0x1400009
  Serial number of failed request:  9
  Current serial number in output stream:  11

The problem is with the incorrect configuration of SDL. It should be enough to install the libsdl3-dev package. Installing the package will set the correct configuration of the library. After that, the package can be removed, and the problems should not repeat.

sudo apt install libsdl3-dev
sudo apt remove libsdl3-dev

In many cases the installation of libsdl2-dev does the same.