You are not logged in.

#1 2014-07-03 05:47:10

tridus
Member
Registered: 2014-06-26
Posts: 24

[SOLVED] MPLAYER "Could not find a UTF-8 locale"

When loading subtitles I get this warning:

Could not find a UTF-8 locale, 
character keys beyond Latin-1 will not be handled.

I'm pretty sure my locale is well defined (it's es_HN.UTF-8).

I have no idea what is wrong.

Last edited by tridus (2014-07-03 20:48:34)

Offline

#2 2014-07-03 05:54:56

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,653

Re: [SOLVED] MPLAYER "Could not find a UTF-8 locale"

What's the output of `locale` and `locale -a`?

Offline

#3 2014-07-03 06:01:30

tridus
Member
Registered: 2014-06-26
Posts: 24

Re: [SOLVED] MPLAYER "Could not find a UTF-8 locale"

locale:

LANG=es_HN.UTF-8
LC_CTYPE="es_HN.UTF-8"
LC_NUMERIC="es_HN.UTF-8"
LC_TIME="es_HN.UTF-8"
LC_COLLATE="es_HN.UTF-8"
LC_MONETARY="es_HN.UTF-8"
LC_MESSAGES="es_HN.UTF-8"
LC_PAPER="es_HN.UTF-8"
LC_NAME="es_HN.UTF-8"
LC_ADDRESS="es_HN.UTF-8"
LC_TELEPHONE="es_HN.UTF-8"
LC_MEASUREMENT="es_HN.UTF-8"
LC_IDENTIFICATION="es_HN.UTF-8"
LC_ALL=

locale -a:

C
es_HN.utf8
POSIX

Offline

#4 2014-07-03 15:24:00

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,653

Re: [SOLVED] MPLAYER "Could not find a UTF-8 locale"

You're right, everything looks fine with your locale setup. No idea why you would have that error.

Offline

#5 2014-07-03 16:48:22

Cloudef
Member
Registered: 2010-10-12
Posts: 636

Re: [SOLVED] MPLAYER "Could not find a UTF-8 locale"

Offline

#6 2014-07-03 17:57:21

tridus
Member
Registered: 2014-06-26
Posts: 24

Re: [SOLVED] MPLAYER "Could not find a UTF-8 locale"

./locale-check:

 * Parent:     266 /usr/bin/enlightenment
 * Terminal:   382 terminology
 * Shell:      388 /bin/bash

Looks good. ♥
 * You are using the es_HN.UTF-8 locale.
 * Shell's locale matches terminal's locale.
 * Terminal's locale matches parent process locale.

Offline

#7 2014-07-03 18:38:47

Cloudef
Member
Registered: 2010-10-12
Posts: 636

Re: [SOLVED] MPLAYER "Could not find a UTF-8 locale"

So looking at mplayer source code, it seems to do really stupid thing and try set locale to C.UTF-8 or en_US.UTF-8. If you don't have any of those locales generated, it assumes you don't have UTF-8 locale and spouts that message. (Most likely your subtitles will still be fine though?)

mpv doesn't seem to have this behaviour in source code as far I see, and I suggest trying it instead. (It's a fork that pulls both mplayer and mplayer2 and improves over them)

Last edited by Cloudef (2014-07-03 18:40:30)

Offline

#8 2014-07-03 20:33:56

tridus
Member
Registered: 2014-06-26
Posts: 24

Re: [SOLVED] MPLAYER "Could not find a UTF-8 locale"

I tested some Spanish subtitles, and it rendered the special characters correctly. So I guess it's an innocuous warning after all.

Latin-1 characters can be handled with an option in the config file: `subcp=latin1`

I will try mpv if I find more problems.

Last edited by tridus (2014-07-03 20:46:56)

Offline

#9 2014-07-03 20:58:54

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: [SOLVED] MPLAYER "Could not find a UTF-8 locale"

mpv ftw
mplayer wtf


This silver ladybug at line 28...

Offline

Board footer

Powered by FluxBB