The International Simutrans Forum

Simutrans Extended => Simutrans Extended Development => Simutrans Extended Solved Bug Reports => Topic started by: Phystam on July 04, 2017, 08:35:02 AM

Title: UTF-8 character input
Post by: Phystam on July 04, 2017, 08:35:02 AM
I could not input UTF-8 characters sequence such as Japanese.
When I added a code in "static void fill_event(event_t* const ev)" function of as follows:
Code: [Select]
switch (sys_event.type) {
    case SIM_KEYBOARD:
        ev->ev_class = EVENT_KEYBOARD;
        ev->ev_class = sys_event.code;
    case SIM_STRING: //added
        ev->ev_class = EVENT_STRING; //added
        ev->ev_ptr = sys_event.ptr; //added
        break; //added
then the issue was fixed. This code is included in standard version but not included in extended version.