Git Product home page Git Product logo

Comments (8)

nilnor avatar nilnor commented on June 14, 2024

Thanks for reporting, and for including a good test case! This is fixed in master now.

from howl.

nilnor avatar nilnor commented on June 14, 2024

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.

refi64 avatar refi64 commented on June 14, 2024

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.

nilnor avatar nilnor commented on June 14, 2024

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.

shalabhc avatar shalabhc commented on June 14, 2024

Is this now fixed since we are on Aullar?

from howl.

refi64 avatar refi64 commented on June 14, 2024

@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.

bugabinga avatar bugabinga commented on June 14, 2024

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.

nilnor avatar nilnor commented on June 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.