--Apple-Mail=_AEBB7B8F-5775-49CB-B581-8F78EE49F872 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Am 29.04.2020 um 15:18 schrieb Ian McCallion : >=20 > On Tue, 28 Apr 2020 at 18:18, martin schatzmayr > wrote: > =20 >=20 > Gesendet von Mail f=C3= =BCr Windows 10 >=20 > =20 >=20 > Von: Ian McCallion > Gesendet: Tuesday, 28 April 2020 18:47 > An: martin schatzmayr > Cc: Nicholas Jankowski ; Help GNU Octave > Betreff: Re: parse error >=20 > =20 >=20 > On Tue, 28 Apr 2020 at 17:30, martin schatzmayr > wrote: >=20 > =20 >=20 > =20 >=20 > Gesendet von Mail f=C3= =BCr Windows 10 >=20 > =20 >=20 > Von: Ian McCallion > Gesendet: Tuesday, 28 April 2020 16:57 > An: Nicholas Jankowski > Cc: martin schatzmayr ; Help GNU Octave > Betreff: Re: parse error >=20 > =20 >=20 > On Tuesday, 28 April 2020, Nicholas Jankowski > wrote: >=20 > Used buil-in-editor to create same code =E2=80=93 on running I had the = same issue . When I open the file ami.m I see the expected code . I have u= ninstalled octave and reinstalled it again ( octave 5.2.0 -w64-installer.= exe) still no change >=20 > =20 >=20 > Please always Reply All to keep the mailing list copied.=20 >=20 > =20 >=20 > So just to be clear, you have used both notepad++ and the built-in Octave= editor to create the same file, and get the same non-ascii output from _bo= th_ programs? But only after saving the file? And if you open the same file= in both programs you see the expected code not the garbage characters I sa= w? =20 >=20 > =20 >=20 > For notepad++, are you using the version that comes with Octave or do you= have another version installed? >=20 > =20 >=20 > If it does the same in both Notepad++ and also the Octave Editor, what ha= ppens if you try saving it in another program like the Windows Notepad text= editor? What happens when Octave tries to run it? What do you see if you o= pen a file saved in Octave's editor in Windows Notepad? >=20 > =20 >=20 > Within Octave, also confirming: if you type the text, save it, and press = F5 to run it, do you get the same error? >=20 > =20 >=20 > Are you using any non-default Windows Language or Keyboard settings? >=20 > =20 >=20 > Martin, >=20 > =20 >=20 > Please zip and upload the file you created. That should ensure it is not = codepage translated during the transfer and will allow us to inspect it. >=20 > =20 >=20 > Cheers Ian >=20 > =20 >=20 > Hi=20 >=20 > I have created this file with the built-in-editor of octave. As suggested= the file is zipped >=20 > So the problem is codepage-related. Please open a powershell window and t= ype: >=20 > =20 >=20 > [System.Text.Encoding]::Default >=20 > =20 >=20 > And tell us what you obtain. >=20 > =20 >=20 > Ian >=20 > =20 >=20 > That is the output: >=20 > =20 >=20 > PS C:\Users\Martin Schatzmayr> [System.Text.Encoding]::Default >=20 > =20 >=20 > =20 >=20 > IsSingleByte : True >=20 > BodyName : iso-8859-1 >=20 > EncodingName : Western European (Windows) >=20 > HeaderName : Windows-1252 >=20 > WebName : Windows-1252 >=20 > WindowsCodePage : 1252 >=20 > IsBrowserDisplay : True >=20 > IsBrowserSave : True >=20 > IsMailNewsDisplay : True >=20 > IsMailNewsSave : True >=20 > EncoderFallback : System.Text.InternalEncoderBestFitFallback >=20 > DecoderFallback : System.Text.InternalDecoderBestFitFallback >=20 > IsReadOnly : True >=20 > CodePage : 1252 >=20 >=20 > This is identical to what I receive, which suggests that in some circumst= ances Octave and notepad++ editors choose the wrong encoding based on somet= hing else. Another possibly relevant internationalisation setting in window= s is: >=20 > Get-WinSystemLocale >=20 > which returns the LCID as defined in http://www.rfc-editor.org/rfc/bcp/bc= p47.txt . I get this: >=20 > LCID Name DisplayName > ---- ---- ----------- > 2057 en-GB English (United Kingdom) >=20 > Regarding how to get you using Octave,: >=20 > 1. Have you tried creating files using the windows notepad editor? > 2. Try copying and pasting from the Octave command window to the editor w= indow and saving as a .m file and running. >=20 > Hoping something here is helpful! >=20 > Cheers... Ian >=20 > Last possibility Hi=20 i have reinstalled notepad ++ on my computer. When use notepad ++ to wri= te a program I can run this program from the command-line !=20 When i write the same program with octave=E2=80=99s built-in-editor I stil= l get the same old error code =20 --Apple-Mail=_AEBB7B8F-5775-49CB-B581-8F78EE49F872 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

Am 29.04.2020= um 15:18 schrieb Ian McCallion <address@hidden>:

On Tue, 28 Apr 2020 at 18:18, martin= schatzmayr <masch@utanet.= at> wrote:

 

Gesendet von Mail f=C3=BCr Windows 10

 

Von: Ian McCallion
Gesendet: Tuesday, 28 April 2020 18:47
An: marti= n schatzmayr
Cc: Nicholas Jankowski; Help GNU Octave
Betreff: Re: parse error

 

On Tue, 28 Apr 2020 at 17= :30, martin schatzmayr <address@hidden> wrote:

 

 

Gesendet von Mail f=C3=BCr Windows 10

 

Von: Ian McCall= ion
Gesendet: Tuesday, 28 April 2020 16:57
An: Nicholas Jankowsk= i
Cc:=  martin schatzmayr; Hel= p GNU Octave
Betreff: Re: parse error

 

On Tuesday, 28 April 2020, Nicholas= Jankowski <address@hidden> wrote:<= /u>

Used b= uil-in-editor  to create same code =E2=80=93  on running I had th= e  same issue . When I open the file ami.m I see the expected code . I= have uninstalled  octave and reinstalled it again  ( octave 5.2.= 0 -w64-installer.exe)  still no change=

 

Please always Reply All to keep the mailing list cop= ied. 

 

So just to be clear, you have used= both notepad++ and the built-in Octave editor to create the same file, and= get the same non-ascii output from _both_ programs? But only after saving = the file? And if you open the same file in both programs you see the expect= ed code not the garbage characters I saw?  

 

For notepad++, are you using the version that comes = with Octave or do you have another version installed?

 =

If it does the same in both Notepad++ and also the Octave Edit= or, what happens if you try saving it in another program like the Windows N= otepad text editor? What happens when Octave tries to run it? What do you s= ee if you open a file saved in Octave's editor in Windows Notepad?

 

Within Octave, also confirming: if you type the text= , save it, and press F5 to run it, do you get the same error?=

 

Are you using any non-default Windows Language or Keyboard s= ettings?

 

Martin,

 

Please zip and upload the file you created. That sho= uld ensure it is not codepage translated during the transfer and will allow= us to inspect it.

 

<= span lang=3D"en-AT" class=3D"">Cheers Ian

 <= u class=3D"">

Hi 

<= span lang=3D"en-AT" class=3D"">I have created this file with the built-in-e= ditor of octave. As suggested the file is zipped

So the problem is codepage-= related. Please open a powershell window and type:

 

    = [System.Text.Encoding]::Default

 

And tell us what you obtain.

 

Ian

 

That is = the output:

 

PS C:\Users\Martin Schatzmayr>  [Sy= stem.Text.Encoding]::Default

 

 

IsSingleByte      : True

BodyName    &n= bsp;     : iso-8859-1

EncodingName      : W= estern European (Windows)

HeaderName        : Windo= ws-1252

WebNa= me           : Windows-12= 52

WindowsCod= ePage   : 1252

IsBrowserDisplay  : True

IsBrowserSave     : True

IsMailNewsDisp= lay : True

Is= MailNewsSave    : True

EncoderFallback   : System.Text.Internal= EncoderBestFitFallback

DecoderFallback   : System.Text.InternalDecoderBestFitF= allback

IsRea= dOnly        : True

CodePage    &= nbsp;     : 1252


This is identical to what I rece= ive, which suggests that in some circumstances Octave and notepad++ ed= itors choose the wrong encoding based on something else. Another possibly r= elevant internationalisation setting in windows is:
        Get-Win= SystemLocale

whic= h returns the LCID as defined in http://www.rfc-editor.org/rfc/bcp/bcp47.txt. I get this:



<= div class=3D"">

Last possibility

Hi 
i h= ave  reinstalled notepad ++  on my computer. Wh= en use  notepad ++ to write a  program I= can  run this program  from the command-line ! =
When i write the same program w= ith octave=E2=80=99s  built-in-editor I still get the same old error c= ode    

--Apple-Mail=_AEBB7B8F-5775-49CB-B581-8F78EE49F872--