Re: Strange CodePage Error in GiP2.99 On XP

2017-08-03 Thread Ralph Corderoy
Hi Vangelis,

> > Try using "--encoding-console-out cp1252" option
>
>  Of course Ralph is a code wizard, so he could possibly enlighten us
> further, but according to --longhelp, "cp1252" is the value used as a
> default fallback when autodetection fails in the cases of
> --encoding-locale & --encoding-locale-fs

Yes, I just read the help text of those related options and saw the
varying defaults.  `cp1252' is AKA Windows-1252 and I know that's their
extension to ISO 8859-1 so highly likely to be present.  `cp850' I was
unfamiliar with so I guess it got ditched, either by that Windows
version, or Perl's support.  https://en.wikipedia.org/wiki/Cp850 turns
out to be a predecessor to Windows-1252.

-- 
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy

___
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer


Re: Strange CodePage Error in GiP2.99 On XP

2017-08-03 Thread Vangelis forthnet

On Wed Aug 2 21:44:06 BST 2017, C E Macfarlane wrote:


--type tv --tvmode hafhd,hlshd


... Unless it's a typo, hafhd is a non-existent tvmode...
Did you mean hvfhd (720p@50FPS) ?


--pid b007c0ys ... -g


--pid always triggers a fetch (unless --info etc. are used),
so --get (-g) is redundant in this case :-)


Cannot find encoding "cp850" at
C:\Programs\GetIPlayer\get_iplayer.pl
line 323


That line reads:

binmode(STDOUT, ":encoding($opt->{encodingconsoleout})");


From GiP-2.99's longhelp:


--encoding-console-out   Character encoding used to encode search 
results and other output.  Encoding name must be known to Perl Encode 
module.  Default (only if auto-detect fails): Linux/Unix/OSX = UTF-8, 
Windows = cp850


Now, I'm not a perl expert but the above indicate
that your installed Encode perl module should
autodetect your "encodingconsoleout"; if autodetection
fails or encoding is unknown to the module,
then it should default to "cp850".

It appears that senario is now true in your setup;
but "cp850" is still not found (?), hence the error shown...

FWIW, on my setup (WinVistaSP2 x86, en-US locale),
when I generate a debug log with GiP 2.99 I get:

encodingconsolein = cp737
encodingconsoleout = cp737
encodinglocale = cp1253
encodinglocalefs = cp1253

This is with Strawberry Perl 5.24.0.1.

Ralph Corderoy wrote:


Try using
"--encoding-console-out cp1252" option


Of course Ralph is a code wizard, so
he could possibly enlighten us further,
but according to --longhelp, "cp1252"
is the value used as a default fallback
when autodetection fails in the cases of
--encoding-locale & --encoding-locale-fs

C E Macfarlane wrote:


Also, the new FFMPEG fails on XP with:


Please refer to my May post here:

http://lists.infradead.org/pipermail/get_iplayer/2017-May/010711.html

for possible workarounds :-)

Kindest regards,
Vangelis. 



___
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer


Re: Strange CodePage Error in GiP2.99 On XP

2017-08-02 Thread Alan Milewczyk

On 02/08/2017 21:44, C E Macfarlane wrote:

Just tried to use GiP on my XP machine for the first time in months, and am
getting a strange error that never used to occur:


XP is no longer supported although I think some users have found a way 
around the various problems. I'm sure it's in the archives but I don't 
have time to check it out.


Alan



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


___
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer


RE: Strange CodePage Error in GiP2.99 On XP

2017-08-02 Thread C E Macfarlane
Thanks ...
-- 
www.macfh.co.uk/MacFH.html

> -Original Message-
> From: get_iplayer [mailto:get_iplayer-boun...@lists.infradead.org]On
> Behalf Of Ralph Corderoy
> Sent: 02 August 2017 22:02
> To: get_iplayer@lists.infradead.org
> Subject: Re: Strange CodePage Error in GiP2.99 On XP
> 
> 
> Hi C.E.,
> 
> > Cannot find encoding "cp850" at 
> C:\Programs\GetIPlayer\get_iplayer.pl
> > line 323.
> 
> Try using `--encoding-console-out cp1252' option at the start 
> of the options.
> Only a quick guess;  I don't have Windows.

But a very good one, that fixed it!

I'll add that to my options, but I'm still left wondering what has changed?

Thanks again
Regards

C E Macfarlane.


___
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer


Re: Strange CodePage Error in GiP2.99 On XP

2017-08-02 Thread Ralph Corderoy
Hi C.E.,

> Cannot find encoding "cp850" at C:\Programs\GetIPlayer\get_iplayer.pl
> line 323.

Try using `--encoding-console-out cp1252' option at the start of the options.
Only a quick guess;  I don't have Windows.

-- 
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy

___
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer