Re: [Geany-Devel] Building geany using msys2 on Windows 10

2021-09-14 Thread Lex Trotman
On Wed, 15 Sept 2021 at 08:57, Lex Trotman  wrote:
>
> > So looking at https://nightly.geany.org/win32/build_win32_geany.log,
> > the problem is clear: the build is using Python 2.7. Python2 will read
> > the file as ASCII by default, while Python3 will try to detect the
> > encoding and fall back to UTF-8. Plus Python2 is now unsupported.
> >
> > When I tried to recreate the problem on msys and cygwin for 1.31.1,
> > 1.36, and 1.37.1 , I could not reproduce it because I have Python3
> > installed as the only Python on both systems. I spent more time than I
> > should have on this, and I think you may have found a solution
> > yourself.
> >
>
> Thanks for pointing this out, in fact the configure script needs
> fixing on Linux as well, it checks for "python" not "python3" (AFAICT
> I'm crap at autofools).  Explains why HTML fails to build here because
> there is no "python" command anymore so the configure fails even
> though "python3" is available and "rst2html" specifies
> #!/usr/bin/python3.  It also does some weirdness using "py" for the
> python command on windows which according to the Python docs should
> find the latest version installed or the version in the script, ie
> what rst2html explicitly specifies, even if its in Unix form
> /usr/bin/python3.

#2896 raised.

>
> Cheers
> Lex
___
Devel mailing list
Devel@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/devel


Re: [Geany-Devel] Building geany using msys2 on Windows 10

2021-09-14 Thread Lex Trotman
> So looking at https://nightly.geany.org/win32/build_win32_geany.log,
> the problem is clear: the build is using Python 2.7. Python2 will read
> the file as ASCII by default, while Python3 will try to detect the
> encoding and fall back to UTF-8. Plus Python2 is now unsupported.
>
> When I tried to recreate the problem on msys and cygwin for 1.31.1,
> 1.36, and 1.37.1 , I could not reproduce it because I have Python3
> installed as the only Python on both systems. I spent more time than I
> should have on this, and I think you may have found a solution
> yourself.
>

Thanks for pointing this out, in fact the configure script needs
fixing on Linux as well, it checks for "python" not "python3" (AFAICT
I'm crap at autofools).  Explains why HTML fails to build here because
there is no "python" command anymore so the configure fails even
though "python3" is available and "rst2html" specifies
#!/usr/bin/python3.  It also does some weirdness using "py" for the
python command on windows which according to the Python docs should
find the latest version installed or the version in the script, ie
what rst2html explicitly specifies, even if its in Unix form
/usr/bin/python3.

Cheers
Lex
___
Devel mailing list
Devel@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/devel


Re: [Geany-Devel] Building geany using msys2 on Windows 10

2021-09-14 Thread Doug Henderson
On Mon, 13 Sept 2021 at 15:55, Enrico Tröger  wrote:
>
> > Doug, I'm assuming you mean the Enrico in the little Authors table at
> > the top of the help manual?
>
> I guess yes because my name is broken there.
>
Attached is an image of what I see:

And here is the offending line from
file:///C:/Program%20Files/Geany/share/doc/geany/html/index.html:for
1.38beta1 on win10.



And a dump of that line:

$ head -8 index.html | tail -1 | od -c
000   <   m   e   t   a   n   a   m   e   =   "   a   u   t   h
020   o   r   s   "   c   o   n   t   e   n   t   =   "   E   n
040   r   i   c   o   T   r 303 203 302 266   g   e   r
060   N   i   c   k   T   r   e   l   e   a   v   e   n
100   F   r   a   n   k   L   a   n   i   t   z   C   o
120   l   o   m   b   a   n   W   e   n   d   l   i   n   g
140   M   a   t   t   h   e   w   B   r   u   s   h   "
160   /   >  \r  \n
164

This tells me that at some point the UTF8 content was loaded as ISO-8859-?

So looking at https://nightly.geany.org/win32/build_win32_geany.log,
the problem is clear: the build is using Python 2.7. Python2 will read
the file as ASCII by default, while Python3 will try to detect the
encoding and fall back to UTF-8. Plus Python2 is now unsupported.

When I tried to recreate the problem on msys and cygwin for 1.31.1,
1.36, and 1.37.1 , I could not reproduce it because I have Python3
installed as the only Python on both systems. I spent more time than I
should have on this, and I think you may have found a solution
yourself.

Also this the results from the locale command:

Doug@mars MINGW64 ~/src/MINGW-packages/mingw-w64-geany
$ locale
LANG=en_CA.UTF-8
LC_CTYPE="en_CA.UTF-8"
LC_NUMERIC="en_CA.UTF-8"
LC_TIME="en_CA.UTF-8"
LC_COLLATE="en_CA.UTF-8"
LC_MONETARY="en_CA.UTF-8"
LC_MESSAGES="en_CA.UTF-8"
LC_ALL=

On cygwin, I get the same, but with LC_ALL having the same value.

Also:

Microsoft Windows [Version 10.0.19043.1165]
(c) Microsoft Corporation. All rights reserved.

Doug@MARS C:\Users\Doug
> chcp
Active code page: 65001

Code page 65001 specifies UTF-8

MINGW64_NT-10.0-19043 mars 3.2.0-340.x86_64 2021-08-02 16:30 UTC x86_64 Msys
CYGWIN_NT-10.0 mars 3.2.0(0.340/5/3) 2021-03-29 08:42 x86_64 Cygwin

Doug

--
Doug Henderson, Calgary, Alberta, Canada - from gmail.com
___
Devel mailing list
Devel@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/devel