You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Fix reading Unicode from stdio.
This commit is contained in:
@@ -152,12 +152,10 @@ Vector<String> OS_Unix::get_video_adapter_driver_info() const {
|
||||
String OS_Unix::get_stdin_string(bool p_block) {
|
||||
if (p_block) {
|
||||
char buff[1024];
|
||||
String ret = stdin_buf + fgets(buff, 1024, stdin);
|
||||
stdin_buf = "";
|
||||
return ret;
|
||||
return String::utf8(fgets(buff, 1024, stdin));
|
||||
}
|
||||
|
||||
return "";
|
||||
return String();
|
||||
}
|
||||
|
||||
Error OS_Unix::get_entropy(uint8_t *r_buffer, int p_bytes) {
|
||||
|
||||
Reference in New Issue
Block a user