Comments (8)
Thanks for reporting, and for including a good test case! This is fixed in master now.
from howl.
Sorry, but I had to revert the fix since it causes similar issues in more main-stream scenarios. The problem is with the difference in UTF-8 handling between Scintilla and glib. This will eventually solve itself when Scintilla is replaced (still some time off I'm afraid).
from howl.
Ok. I had noticed something weird went on opening one of my C++ files where Howl was complaining about bounds stuff. It's now resolved.
I doubt opening binary files in a text editor is necessarily common, anyway!
Out of curiosity, wouldn't it be possible to just use gtksourceview?
from howl.
Yes, opening binary files is currently not that usable anyway, sometime in the future this might be handled better by providing a hex view used for binary files.
I did look at gtksourceview in the (very) early days and even used it for a short time in the beginning. It's nice, but I found it rather limited in the end and switched back to Scintilla. I'm currently working on a new, custom, editing engine that should make its debut in 0.4, so that will be the way forward.
from howl.
Is this now fixed since we are on Aullar?
from howl.
@shalabhc Not really. Upon opening the file, this pops up in the terminal:
(howl:5779): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()
Not really too much of an issue. More interesting is navigating using the arrow keys: if I keep on hitting the right arrow, the following occurs:
- After going past the second "invalid character" box, the next tap of the arrow will skip the next three characters.
- Tapping the right arrow again will go backwards/left one character.
- One more tap will go right again.
- Another tap will go to the end of the file, with the error message "Illegal column 6".
from howl.
I think this can be closed now.
Tested the file with the master branch and there is neither error nor warning.
It is true, that the cursor seems to disappear when navigating to "invalid" characters.
But no action I have tried (move, type, copy, paste, delete) caused any error message.
from howl.
Thanks @bugabinga, good catch! I did some work earlier this summer with ensuring that we always have valid UTF-8 in any buffer (this is some GLib routines require this, and in the case of GRexex will actually segfault in some scenarios). That I'm sure can lead to some other issues or requests, but this one we can now close :)
from howl.
Related Issues (20)
- Buffer list can be cluttered by outputs. HOT 4
- Pasting from clipboards managers don't work correctly HOT 11
- js syntax highlighting: string delimeters in regex
- bundle access to outside lib HOT 1
- Allow selection of file with mouse click/doubleclick on dialogs like search results to open it
- Feature request: Multi line edit
- Unable to set vi-on as default at startup HOT 2
- save_current_session HOT 1
- New view above or below always split the whole window.
- Impossible to see if a buffer is saved at the first glance (unlike most editors). HOT 4
- Plan to be arm64 compatible? HOT 3
- How to turn off autocompletions? HOT 2
- Missing "gtk+-3.0.pc" for building.
- Autocleaning the buffer list on quit.
- Go bundle fails to detect gocode
- Feature request: sudo save
- Successfully configured Howl to detect indentation from opened file - next steps?
- Font size not applied to the console
- Source does not build on macOS Ventura M1
- Next Release HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from howl.