Menu

#3540 encoding of macros is not specified

minor bug
open
nobody
5
2013-12-10
2011-06-03
Eric Le Lay
No

Beanshell macros are loaded with the default encoding.
This results in an error message when I run Macros/Insert Buffer Properties
since I have set UTF-8 as default encoding and Insert_Buffer_Properties.bsh is in ISO-8859-1 and contains an accented char (ö).

I can't change the encoding of the file or it will result in a warning with other default encodings.
Specifying an encoding when calling jEdit.openTemporary() in Beanshell._runScript() seems the best option.
Then, what encoding would you like ?

Related

Feature Requests: #361

Discussion

  • Alan Ezust

    Alan Ezust - 2011-06-04
    • assigned_to: ezust --> nobody
     
  • Eric Le Lay

    Eric Le Lay - 2012-03-11
    • assigned_to: nobody --> kerik-sf
     
  • Eric Le Lay

    Eric Le Lay - 2012-03-11

    Only macros/Insert_Buffer_Properties.bsh poses problem.
    Following a recent discussion on the mailing list (https://sourceforge.net/mailarchive/message.php?msg_id=28963059) we should change the encoding of the macro and specify UTF-8 in Beanshell._runScript.
    I'll create a patch.

     
  • Eric Le Lay

    Eric Le Lay - 2013-02-20
    • assigned_to: kerik-sf --> nobody
     
  • Eric Le Lay

    Eric Le Lay - 2013-02-20

    the macro has been changed to utf-8 meanwhile.
    I've added an explicit utf-8 encoding in r22807.
    I'm still not happy about this source of non-portability in jEdit.

     
  • Eric Le Lay

    Eric Le Lay - 2013-02-20

    diff against r22807 to force loading macros as UTF-8

     
  • Alan Ezust

    Alan Ezust - 2013-12-10
    • labels: macros --> macros, Encodings
    • Group: --> minor bug
     

Log in to post a comment.