-
Notifications
You must be signed in to change notification settings - Fork 97
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
Crash on latin1 character #31
Comments
Thanks for opening this issue. How does your terminal handle non-utf8 encodings in general? Have you set any of these env variables: Are you able to |
You already guessed I'm French, giving the "chosen character" 😉 I hope this test is long enough. I have the same behavior with |
Ahh, I see now, thanks for explaining it to me in detail. I was afraid to start implementing specific encodings for non-utf8 types at this stage, but I agree that non utf8 encodings should at the very least not crash. This is indeed a bug, and we should handle foreign characters gracefully. My goal is to have the same behavior as both |
I guess the best behavior is:
|
Since For reading files on disk, we use a library that provides the actual reading and tailing functionality, and at the moment it crashes on these non-utf-8 encodings. I've opened a ticket in the repo upstream and will implement a fix on our end once a solution is in place. |
Chiming in to confirm this is still present, I just discovered it trying to tail some postgres log files. Workaround as mentioned is simply to |
Welcome to the rude world of character encoding:
Here, the error message is clear, but I have logs with Latin1 encoded value, and the application crashes. It shouldn't :)
I suspect other encoding not compatible with UTF-8 generate the same crash.
The text was updated successfully, but these errors were encountered: