Re: w3m displays blank help page

2021-12-29 Thread Marco Atzeri

On 30.12.2021 02:13, Gary Johnson wrote:

On 2021-12-29, Ken Brown wrote:

On 12/29/2021 4:44 PM, Gary Johnson wrote:

So, I have
a workaround for the problem, but I'd really like a proper fix, and
there may be other users with this problem.


w3m currently has no maintainer.  Would you like to take over?


Possibly.  Let me take a look at fixing it properly and if I can
figure that out, I can probably manage maintaining it.

I didn't see any Cygwin-specific docs or maintenance notes among the
package or source files.  That must mean that there's nothing to it.

Regards,
Gary




See
https://cygwin.com/packages/x86_64/w3m-src/w3m-0.5.3-3-src

the cygwin source package has several patches.

I suggest you to try rebuilding it to familiarize with the
cygport tool.
It is possible that the changes in the build tools need
some adjustment after all these years..


After the

   cygport w3m.cygport prep

step, you can add your patch to the "src" subtree and cygport
will produce during packaging phase a new patch that you can rename
and add to the existing one in the w3m.cygport.

You can ask more info in the "cygwin-apps at cygwin dot com"
mailing list.
https://cygwin.com/mailman/listinfo/cygwin-apps




--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: w3m displays blank help page

2021-12-29 Thread Gary Johnson
On 2021-12-29, Ken Brown wrote:
> On 12/29/2021 4:44 PM, Gary Johnson wrote:
> >So, I have
> >a workaround for the problem, but I'd really like a proper fix, and
> >there may be other users with this problem.
> 
> w3m currently has no maintainer.  Would you like to take over?

Possibly.  Let me take a look at fixing it properly and if I can
figure that out, I can probably manage maintaining it.

I didn't see any Cygwin-specific docs or maintenance notes among the
package or source files.  That must mean that there's nothing to it.

Regards,
Gary


-- 
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: w3m displays blank help page

2021-12-29 Thread Ken Brown

On 12/29/2021 4:44 PM, Gary Johnson wrote:

So, I have
a workaround for the problem, but I'd really like a proper fix, and
there may be other users with this problem.


w3m currently has no maintainer.  Would you like to take over?

Ken

--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


w3m displays blank help page

2021-12-29 Thread Gary Johnson
I recently installed the w3m package.  When I tried to display the
help page by typing "H", I got only a blank page with this message
in the status line:

≪ ↑ ↓ Viewing  No Line

I did some poking around, ran w3m with strace, and found that w3m
runs the script /usr/libexec/w3m/cgi-bin/w3mhelp.cgi to generate its
help page.  When I ran that script alone, I got this message (on one
line):

Can't use 'defined(%hash)' (Maybe you should just omit the defined()?) at 
/usr/libexec/w3m/cgi-bin/w3mhelp.cgi line 51.

I did that, as shown in this diff:

$ diff w3mhelp.cgi.orig w3mhelp.cgi
51,53c51
<   if (defined(%funcdesc)) {
<   $lang = $tlang;
<   }
---
>   $lang = $tlang;
>

Having done that, the "H" help function works fine.  So, I have
a workaround for the problem, but I'd really like a proper fix, and
there may be other users with this problem.

I also recently installed w3m onto my Ubuntu 20.04.3 LTS system and
the w3m help page displays fine there with no modification to that
file.

To see the problem:

1.  At the bash prompt, execute
$ w3m -v
2.  Type
H

The package appears to be installed properly:

$ cygcheck -c w3m
Cygwin Package Information
Package  VersionStatus
w3m  0.5.3-3OK

The output of "cygcheck -s -v -r", sanitized, is attached.

Regards,
Gary

Cygwin Configuration Diagnostics
Current System Time: Wed Dec 29 20:34:14 2021

Windows 10 Enterprise Ver 10.0 Build 18363 

Path:   C:\cygwin64\home\MyUserName\bin\cygwin-scripts
C:\cygwin64\home\MyUserName\bin
C:\cygwin64\usr\local\bin
C:\cygwin64\usr\sbin
C:\cygwin64\bin
C:\cygwin64\sbin
C:\WINDOWS\CCM
C:\WINDOWS\system32
C:\WINDOWS
C:\WINDOWS\System32\Wbem
C:\WINDOWS\System32\WindowsPowerShell\v1.0
C:\WINDOWS\System32\OpenSSH

C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps
C:\Program Files (x86)\Adaptiva\AdaptivaClient\bin\x32
C:\Program Files (x86)\Adaptiva\AdaptivaClient\bin\x64
C:\Program Files\1E\Client\Extensibility\NomadBranch
C:\Program Files\Git\cmd
C:\Users\MyUserName\AppData\Local\Programs\Python\Python39\Scripts
C:\Users\MyUserName\AppData\Local\Programs\Python\Python39
C:\Users\MyUserName\AppData\Local\Microsoft\WindowsApps
C:\cygwin64\lib\lapack
C:\cygwin64\home\MyUserName\bin\scripts
C:\cygwin64\usr\local\src\git-toolbelt\git-toolbelt
C:\Keil_v5\ARM\ARMCC\bin

Output from C:\cygwin64\bin\id.exe
...

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

USER = 'MyUserName'
PWD = '/home/MyUserName'
HOME = '/home/MyUserName'

USERDOMAIN = 'MYUSERDOMAIN'
OS = 'Windows_NT'
LS_COLORS = 
'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=01;34:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*.3gp=01;35:*.JPG=01;35:*.MOV=01;35:*.vba=01;31:*.vmb=01;31:*.vim=00;33:*.xz=01;31:'
COMMONPROGRAMFILES = 'C:\Program Files\Common Files'
PROCESSOR_LEVEL = '6'
PSModulePath = 'C:\Program 
Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules;C:\Program
 Files (x86)\Adaptiva\AdaptivaClient\data\PSModules'
WCDEXCLUDE = 
'/cygdrive/c/Users/MyUserName/OneDrive:/cygdrive/c/Users/MyUserName/AppData'
CommonProgramW6432 = 'C:\Program Files\Common Files'
CommonProgramFiles(x86) = 'C:\Program Files (x86)\Common Files'
LANG = 'en_US.UTF-8'
TZ = 'America/Los_Angeles'
HISTCONTROL = 'ignoredups:ignorespace'
LESS = '-Rimz-2j2M'
SHELL_LEVEL = '0'
HISTTIMEFORMAT