Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PORT] fix: add support for multibyte chars for truncate, stripped_input, tgui_input_text #5120

Merged
merged 1 commit into from
Jan 29, 2025

Conversation

Absolucy
Copy link
Member

About The Pull Request

Ports tgstation/tgstation#85313

Add support for multibyte chars for truncate, stripped_input, tgui_input_text.

Right now, on UI of tgui_input_text chars are counted, but on back-end - bytes. So I made it consistent. Also fixed that for stripped_input, which is used in case of disabled tgui input.
While I was here, made truncate proc consistent too

Why It's Good For The Game

Tgui text input won't lie about the size of input

Changelog

N/A

…, `tgui_input_text` (#85313)

## About The Pull Request

Add support for multibyte chars for `truncate`, `stripped_input`,
`tgui_input_text`.

Right now, on UI of `tgui_input_text` chars are counted, but on back-end
- bytes. So I made it consistent.
Also fixed that for `stripped_input`, which is used in case of disabled
`tgui input`.
While I was here, made `truncate` proc consistent too

## Why It's Good For The Game

Tgui text input won't lie about the size of input

## Changelog
N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fix fix da bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants