Comment 12 for bug 212441

Revision history for this message
loula (alex-loula) wrote :

I was facing a similar issue, but mine was not related with network. I'm using static IP.

My problem was that the filesystem charset was not loaded correctly. I have <filesystem-charset>UTF-8</filesystem-charset> on my config.xml. However after boot the loaded charset was the "ANSI_X3.4-1968". If I restarted the mediatomb (/etc/init.d/mediatomb restart) after login, the charset "UTF-8" was loaded correctly.

I'm using the latest development code (0.12) from SVN. I changed the src/config_manager.cc file as below:
Right after this line:
if (setlocale(LC_ALL, "") != NULL)
Change this:
temp = nl_langinfo(CODESET);
To:
temp = "UTF-8";

Since I'm not a C/C++ expert, I guess there are best solutions. However this is working for me:

2010-01-29 14:43:18 INFO: Loading configuration from: /home/mediatomb/.mediatomb/config.xml
2010-01-29 14:43:18 INFO: Checking configuration...
2010-01-29 14:43:18 INFO: Setting filesystem import charset to UTF-8
2010-01-29 14:43:18 INFO: Setting metadata import charset to UTF-8
2010-01-29 14:43:18 INFO: Setting playlist charset to UTF-8
2010-01-29 14:43:18 WARNING: You enabled the YouTube feature, which allows you
                             to watch YouTube videos on your UPnP device!
                             Please check http://www.youtube.com/t/terms
                             By using this feature you may be violating YouTube
                             service terms and conditions!

2010-01-29 14:43:18 INFO: Configuration check succeeded.
2010-01-29 14:43:18 INFO: Initialized port: 50500
2010-01-29 14:43:18 INFO: Server bound to: 10.1.0.100
2010-01-29 14:43:19 INFO: MediaTomb Web UI can be reached by following this link:
2010-01-29 14:43:19 INFO: http://10.1.0.100:50500/