We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Both the Godot::print(const char*) and String(const char*)-methods randomly change the content of their input const char*.
Godot::print(const char*)
String(const char*)
const char*
Here's a minimal reproduction method:
void SQLite::test(String input) { const CharString dummy_input = input.utf8(); const char *char_input = dummy_input.get_data(); std::cout << char_input << std::endl; Godot::print(char_input); std::cout << char_input << std::endl; }
Code in Godot itself:
func _ready() -> void: db = SQLite.new() db.test("I love GDNative!")
Which prints in the console:
I love GDNative! I love GDNative! I love GDNative!
or
I love GDNative! I love GDNative! I
I love GDNative! I love GDNative! ▐↕▬
or other similar random junk
Why is this happening? Am I not allowed to use char_input anymore after I print it?
The text was updated successfully, but these errors were encountered:
Might be related? godotengine/godot#40957
Sorry, something went wrong.
No branches or pull requests
Both the
Godot::print(const char*)
andString(const char*)
-methods randomly change the content of their inputconst char*
.Here's a minimal reproduction method:
Code in Godot itself:
Which prints in the console:
or
or
or other similar random junk
Why is this happening? Am I not allowed to use char_input anymore after I print it?
The text was updated successfully, but these errors were encountered: