-
Notifications
You must be signed in to change notification settings - Fork 38
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
Emoji brings down hello-world example #569
Comments
This is an interesting corner case. Your example makes celery crash in the backend:
The first issue with your code example is that you're using However, even when removing the
In this case, celery most probably processes each character as a separate string. Of course, such a string would be incomplete, as it doesn't have a complete sequence in UTF-8 format. This is what might be causing the error message above. |
Note that the correct version of the code example works fine: with Ada.Text_IO; use Ada.Text_IO;
with Ada.Strings.UTF_Encoding; use Ada.Strings.UTF_Encoding;
procedure Greet is
Message : constant UTF_8_String := "😊";
begin
Put_Line (Message);
end Greet; Also, if you assume that all strings are in UTF-8 format and don't need to be processed, you could just write this instead: with Ada.Text_IO; use Ada.Text_IO;
procedure Greet is
Message : constant String := "😊";
begin
Put_Line (Message);
end Greet; |
If you put this program into the interactive hello-world compiler box, it apparently crashes. Changing the program again seems to still work, so I'm not sure this is really a problem.
The error message is:
The text was updated successfully, but these errors were encountered: