The International Simutrans Forum

Simutrans Extended => Simutrans-Extended bug reports => Simutrans-Extended development => Simutrans-Extended closed bug reports => Topic started by: Phystam on July 04, 2017, 10:26:27 PM

Title: UTF-8 character input (redraft)
Post by: Phystam on July 04, 2017, 10:26:27 PM
//I do not know how to move a thread, so I redrafted this.
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 simevent.cc as follows:

switch (sys_event.type) {
    case SIM_KEYBOARD:
        ev->ev_class = EVENT_KEYBOARD;
        ev->ev_class = sys_event.code;
        break;
    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.
Title: Re: UTF-8 character input (redraft)
Post by: jamespetts on July 05, 2017, 12:06:13 AM
Excellent, thank you very much for that - now incorporated.
Title: Re: UTF-8 character input (redraft)
Post by: Phystam on July 06, 2017, 05:25:41 AM
Thanks a lot for your early response and updating!