PDA

View Full Version : Unknown discipline ':encoding(iso-8859-1) withSlimserver 6.0a1



Stefan Kuhnert
2005-02-24, 13:56
Hello,

I have tried Slimserver 6.0a1 tonight. Every times I start the
Squeezebox the server crashes. I found this messages in the log-file:

Unknown discipline ':encoding(iso-8859-1)' at
/usr/local/slimserver6/Slim/Formats/Parse.pm line 48.
Unknown discipline ':encoding(iso-8859-1)' at
/usr/local/slimserver6/Slim/Formats/Parse.pm line 48.
Unknown discipline ':encoding(iso-8859-1)' at
/usr/local/slimserver6/Slim/Formats/Parse.pm line 48.
Unknown discipline ':encoding(iso-8859-1)' at
/usr/local/slimserver6/Slim/Formats/Parse.pm line 48.


The other problem ist in text.pm. I get this message when I tried to
start the srver:
Starting SlimServer6: Had to create DBI::_dbistate unexpectedly at
/usr/lib/perl/5.6.1/DynaLoader.pm line 221.
Use of uninitialized value in subroutine entry at
/usr/lib/perl/5.6.1/DynaLoader.pm line 221.
Illegal hexadecimal digit '{' ignored at
/usr/local/slimserver6/Slim/Utils/Text.pm line 38.
Illegal hexadecimal digit '{' ignored at
/usr/local/slimserver6/Slim/Utils/Text.pm line 38.
Illegal hexadecimal digit '{' ignored at
/usr/local/slimserver6/Slim/Utils/Text.pm line 38.
Illegal hexadecimal digit '{' ignored at
/usr/local/slimserver6/Slim/Utils/Text.pm line 38.

I mentioned this problem a few weeks ago in the mailing list.

I'm running slimserver on a linux box with a mysql database.
I use Perl Version 5.6.1

I hope this will help to improve Slimserver.

Best regards
Stefan

Stefan Kuhnert
2005-02-25, 10:01
Hello,

just for a test i have changed the files parse.pm and misc.pm to older
versions i have on my harddisk. it is working with these versions. the
working version are:

misc.pm size:23329 Date 02/04/2005
parse.pm size:15049 Date 02/04/2005

I dont't have german umlauts on the display but it is working. the
squeezebox connects to the server, and server is not crashing anymore.

regards
stefan

Stefan Kuhnert schrieb:
> Hello,
>
> I have tried Slimserver 6.0a1 tonight. Every times I start the
> Squeezebox the server crashes. I found this messages in the log-file:
>
> Unknown discipline ':encoding(iso-8859-1)' at
> /usr/local/slimserver6/Slim/Formats/Parse.pm line 48.
> Unknown discipline ':encoding(iso-8859-1)' at
> /usr/local/slimserver6/Slim/Formats/Parse.pm line 48.
> Unknown discipline ':encoding(iso-8859-1)' at
> /usr/local/slimserver6/Slim/Formats/Parse.pm line 48.
> Unknown discipline ':encoding(iso-8859-1)' at
> /usr/local/slimserver6/Slim/Formats/Parse.pm line 48.
>
>
> The other problem ist in text.pm. I get this message when I tried to
> start the srver:
> Starting SlimServer6: Had to create DBI::_dbistate unexpectedly at
> /usr/lib/perl/5.6.1/DynaLoader.pm line 221.
> Use of uninitialized value in subroutine entry at
> /usr/lib/perl/5.6.1/DynaLoader.pm line 221.
> Illegal hexadecimal digit '{' ignored at
> /usr/local/slimserver6/Slim/Utils/Text.pm line 38.
> Illegal hexadecimal digit '{' ignored at
> /usr/local/slimserver6/Slim/Utils/Text.pm line 38.
> Illegal hexadecimal digit '{' ignored at
> /usr/local/slimserver6/Slim/Utils/Text.pm line 38.
> Illegal hexadecimal digit '{' ignored at
> /usr/local/slimserver6/Slim/Utils/Text.pm line 38.
>
> I mentioned this problem a few weeks ago in the mailing list.
>
> I'm running slimserver on a linux box with a mysql database.
> I use Perl Version 5.6.1
>
> I hope this will help to improve Slimserver.
>
> Best regards
> Stefan
>

Dan Sully
2005-02-25, 11:22
* Stefan Kuhnert shaped the electrons to say...

>just for a test i have changed the files parse.pm and misc.pm to older
>versions i have on my harddisk. it is working with these versions. the
>working version are:
>
>misc.pm size:23329 Date 02/04/2005
>parse.pm size:15049 Date 02/04/2005
>
>I dont't have german umlauts on the display but it is working. the
>squeezebox connects to the server, and server is not crashing anymore.

Stefan - these crashes are fixed in the 2005-02-25 nightly build.

-D
--
I'm really looking forward to this hangover.

Stefan Kuhnert
2005-02-25, 12:11
Hi Dan

i have downloaded the file slimserver-2005_02_25-1.noarch.rpm.

After I started the server i got the following:

Bareword "Encode::FB_QUIET" not allowed while "strict subs" in use at
/usr/local/slimserver6/Slim/Formats/Parse.pm line 236.
bash: Starting: command not found
eis # Compilation failed in require at
/usr/local/slimserver6/Slim/Formats/FLAC.pm line 23.
bash: Compilation: command not found
eis # BEGIN failed--compilation aborted at
/usr/local/slimserver6/Slim/Formats/FLAC.pm line 23.
bash: BEGIN: command not found
eis # Compilation failed in require at
/usr/local/slimserver6/Slim/DataStores/DBI/DBIStore.pm line 27.
bash: Compilation: command not found
eis # BEGIN failed--compilation aborted at
/usr/local/slimserver6/Slim/DataStores/DBI/DBIStore.pm line 27.
bash: BEGIN: command not found
eis # Compilation failed in require at
/usr/local/slimserver6/Slim/Music/Info.pm line 19.
bash: Compilation: command not found
eis # BEGIN failed--compilation aborted at
/usr/local/slimserver6/Slim/Music/Info.pm line 19.
bash: BEGIN: command not found
eis # Compilation failed in require at
/usr/local/slimserver6/Slim/Utils/Misc.pm line 15.
BEGIN failed--compilation aborted at
/usr/local/slimserver6/Slim/Utils/Misc.pm line 15.
Compilation failed in require at /usr/local/slimserver6/slimserver.pl
line 190.
bash: Compilation: command not found
eis # BEGIN failed--compilation aborted at
/usr/local/slimserver6/Slim/Utils/Misc.pm line 15.
BEGIN failed--compilation aborted at
/usr/local/slimserver6/slimserver.pl line 1bash: BEGIN: command not found
eis # Compilation failed in require at
/usr/local/slimserver6/slimserver.pl line 190.
bash: Compilation: command not found

Something is wrong... I think

Dan Sully schrieb:
> * Stefan Kuhnert shaped the electrons to say...
>
>> just for a test i have changed the files parse.pm and misc.pm to older
>> versions i have on my harddisk. it is working with these versions. the
>> working version are:
>>
>> misc.pm size:23329 Date 02/04/2005
>> parse.pm size:15049 Date 02/04/2005
>>
>> I dont't have german umlauts on the display but it is working. the
>> squeezebox connects to the server, and server is not crashing anymore.
>
>
> Stefan - these crashes are fixed in the 2005-02-25 nightly build.
>
> -D

Dan Sully
2005-02-25, 12:12
* Stefan Kuhnert shaped the electrons to say...

>Hi Dan
>
>i have downloaded the file slimserver-2005_02_25-1.noarch.rpm.
>
>After I started the server i got the following:

Thanks Stefan - I'll get this fixed today.

-D
--
"You can usually recover from production flaws...but you can never recover from a bad design".

Stefan Kuhnert
2005-02-25, 12:31
Thanks Dan, that's the only way i can help :-)

stefan

Dan Sully schrieb:
> * Stefan Kuhnert shaped the electrons to say...
>
>> Hi Dan
>>
>> i have downloaded the file slimserver-2005_02_25-1.noarch.rpm.
>>
>> After I started the server i got the following:
>
>
> Thanks Stefan - I'll get this fixed today.
>
> -D

Dan Sully
2005-02-25, 12:37
* Stefan Kuhnert shaped the electrons to say...

>Thanks Dan, that's the only way i can help :-)

Stefan - can you try this patch?

Thanks.

-D
--
There was supposed to be a big kaboom.

Stefan Kuhnert
2005-02-25, 13:11
Hi Dan,

generally I'm not the person that say's "no", but my knowledge about
perl is less than zero. I don't know what I have to do. Sorry.
If you you can send me the patched modules, I can copy them in.

Dan Sully schrieb:
> * Stefan Kuhnert shaped the electrons to say...
>
>> Thanks Dan, that's the only way i can help :-)
>
>
> Stefan - can you try this patch?
>
> Thanks.
>
> -D
>
>
> ------------------------------------------------------------------------
>
> Index: Plugins/MusicMagic/Plugin.pm
> ================================================== =================
> --- Plugins/MusicMagic/Plugin.pm (revision 2201)
> +++ Plugins/MusicMagic/Plugin.pm (working copy)
> @@ -441,7 +441,7 @@
> # fileURLFromPath will turn this into UTF-8 - so we
> # need to make sure we're in the current locale first.
> if ($] > 5.007) {
> - $songInfo{'file'} = Encode::encode($Slim::Utils::Misc::locale, $songInfo{'file'}, Encode::FB_QUIET);
> + $songInfo{'file'} = Encode::encode($Slim::Utils::Misc::locale, $songInfo{'file'}, Encode::FB_QUIET());
> }
>
> my $fileurl = Slim::Utils::Misc::fileURLFromPath($songInfo{'file '});
> Index: Slim/Utils/Misc.pm
> ================================================== =================
> --- Slim/Utils/Misc.pm (revision 2201)
> +++ Slim/Utils/Misc.pm (working copy)
> @@ -251,7 +251,7 @@
> my $string = shift;
>
> if ($string && $] > 5.007) {
> - return Encode::decode('utf8', $string, Encode::FB_QUIET);
> + return Encode::decode('utf8', $string, Encode::FB_QUIET());
> }
>
> return $string;
> @@ -261,7 +261,7 @@
> my $string = shift;
>
> if ($string && $] > 5.007) {
> - return Encode::encode('utf8', $string, Encode::FB_QUIET);
> + return Encode::encode('utf8', $string, Encode::FB_QUIET());
> }
>
> return $string;
> @@ -918,7 +918,7 @@
>
> if ($] > 5.007) {
>
> - $data = eval { Encode::encode('iso-8859-1', $data, Encode::FB_QUIET) } || $data;
> + $data = eval { Encode::encode('iso-8859-1', $data, Encode::FB_QUIET()) } || $data;
>
> } else {
>
> Index: Slim/Formats/FLAC.pm
> ================================================== =================
> --- Slim/Formats/FLAC.pm (revision 2201)
> +++ Slim/Formats/FLAC.pm (working copy)
> @@ -677,7 +677,7 @@
> next unless exists $tags->{$tag};
>
> if ($] > 5.007) {
> - $tags->{$tag} = eval { Encode::decode("utf8", $tags->{$tag}, Encode::FB_QUIET) };
> + $tags->{$tag} = eval { Encode::decode("utf8", $tags->{$tag}, Encode::FB_QUIET()) };
> } else {
> $tags->{$tag} = Slim::Utils::Misc::utf8toLatin1($tags->{$tag});
> }
> Index: Slim/Formats/Parse.pm
> ================================================== =================
> --- Slim/Formats/Parse.pm (revision 2201)
> +++ Slim/Formats/Parse.pm (working copy)
> @@ -233,7 +233,7 @@
> unless ($noUTF8) {
>
> if ($] > 5.007) {
> - $_ = eval { Encode::decode("utf8", $_, Encode::FB_QUIET) };
> + $_ = eval { Encode::decode("utf8", $_, Encode::FB_QUIET()) };
> } else {
> $_ = Slim::Utils::Misc::utf8toLatin1($_);
> }
> Index: Slim/Formats/Ogg.pm
> ================================================== =================
> --- Slim/Formats/Ogg.pm (revision 2201)
> +++ Slim/Formats/Ogg.pm (working copy)
> @@ -74,7 +74,7 @@
> foreach my $key ($ogg->comment_tags()) {
>
> if ($] > 5.007) {
> - $tags->{uc($key)} = eval { Encode::decode("utf8", ($ogg->comment($key))[0], Encode::FB_QUIET) };
> + $tags->{uc($key)} = eval { Encode::decode("utf8", ($ogg->comment($key))[0], Encode::FB_QUIET()) };
> } else {
> $tags->{uc($key)} = Slim::Utils::Misc::utf8toLatin1(($ogg->comment($key))[0]);
> }
> Index: Slim/Player/Protocols/HTTP.pm
> ================================================== =================
> --- Slim/Player/Protocols/HTTP.pm (revision 2201)
> +++ Slim/Player/Protocols/HTTP.pm (working copy)
> @@ -231,7 +231,7 @@
> my $title = $1;
>
> if ($title && $] > 5.007) {
> - $title = Encode::decode('iso-8859-1', $title, Encode::FB_QUIET);
> + $title = Encode::decode('iso-8859-1', $title, Encode::FB_QUIET());
> }
>
> Slim::Music::Info::setTitle($infoUrl, $title) if $create;
> @@ -474,7 +474,7 @@
> my $title = $1;
>
> if ($title && $] > 5.007) {
> - $title = Encode::decode('iso-8859-1', $title, Encode::FB_QUIET);
> + $title = Encode::decode('iso-8859-1', $title, Encode::FB_QUIET());
> }
>
> # capitalize titles that are all lowercase
>
>
> ------------------------------------------------------------------------
>
>

Dan Sully
2005-02-25, 13:22
* Stefan Kuhnert shaped the electrons to say...

>generally I'm not the person that say's "no", but my knowledge about
>perl is less than zero. I don't know what I have to do. Sorry.
>If you you can send me the patched modules, I can copy them in.

Well, it's less of a perl problem than using 'patch'.

If you change to your slim root directory, then type:

patch -p0 < /path/to/5.6.diff (the file I sent)

Let me know if that doesn't work for you.

-D
--
I'm really looking forward to this hangover.

Stefan Kuhnert
2005-02-25, 13:57
Ah, I see, but my linux knowhow is not on a very higher level. I running
a kind of "linux for idiots server".

I have applied the patch and got the following result from patch:

eis # patch -p0 < /usr/local/slimserver6/5.6.diff
(Stripping trailing CRs from patch.)
patching file Plugins/MusicMagic/Plugin.pm
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file
Plugins/MusicMagic/Plugin.pm.rej
(Stripping trailing CRs from patch.)
patching file Slim/Utils/Misc.pm
(Stripping trailing CRs from patch.)
patching file Slim/Formats/FLAC.pm
(Stripping trailing CRs from patch.)
patching file Slim/Formats/Parse.pm
(Stripping trailing CRs from patch.)
patching file Slim/Formats/Ogg.pm
(Stripping trailing CRs from patch.)
patching file Slim/Player/Protocols/HTTP.pm

Execpt for the error message at the beginning it looks good for me.


After starting the server i got:
Starting SlimServer6: Illegal hexadecimal digit '{' ignored at
/usr/local/slimserver6/Slim/Utils/Text.pm line 38.
Illegal hexadecimal digit '{' ignored at
/usr/local/slimserver6/Slim/Utils/Text.pm line 38.
Illegal hexadecimal digit '{' ignored at
/usr/local/slimserver6/Slim/Utils/Text.pm line 38.
Illegal hexadecimal digit '{' ignored at
/usr/local/slimserver6/Slim/Utils/Text.pm line 38.

I started the server a second time, got the same error, but the server
is running now and squeezebox has connected succesfully and is playing now.

I have also noticed that the german umlauts are missing on the
squeezebox display. I get a blank instead.


stefan

Dan Sully schrieb:
> * Stefan Kuhnert shaped the electrons to say...
>
>> generally I'm not the person that say's "no", but my knowledge about
>> perl is less than zero. I don't know what I have to do. Sorry.
>> If you you can send me the patched modules, I can copy them in.
>
>
> Well, it's less of a perl problem than using 'patch'.
>
> If you change to your slim root directory, then type:
>
> patch -p0 < /path/to/5.6.diff (the file I sent)
>
> Let me know if that doesn't work for you.
>
> -D