You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to support the use case that a file contains both utf-8 encoded commands and binary data, such that if an error occures, it is only important that the text selected via labels is valid utf-8, but doesn't require that the whole file is utf-8. As line numbers and such don't make much sense in that scenario, it would be good to print the raw byte positions instead of line numbers. An optional interaction with the bstr crate (the bstr::BStr struct has a nice Debug implementation) might be useful. If the text selected via labels contains invalid utf-8, it should be printed as hex or something similiar, at least, it shouldn't fail.
The text was updated successfully, but these errors were encountered:
I want to support the use case that a file contains both utf-8 encoded commands and binary data, such that if an error occures, it is only important that the text selected via labels is valid utf-8, but doesn't require that the whole file is utf-8. As line numbers and such don't make much sense in that scenario, it would be good to print the raw byte positions instead of line numbers. An optional interaction with the
bstr
crate (thebstr::BStr
struct has a niceDebug
implementation) might be useful. If the text selected via labels contains invalid utf-8, it should be printed as hex or something similiar, at least, it shouldn't fail.The text was updated successfully, but these errors were encountered: