hzeller / gmrender-resurrect

Resource efficient UPnP/DLNA renderer, optimal for Raspberry Pi, CuBox or a general MediaServer. Fork of GMediaRenderer to add some features to make it usable.
GNU General Public License v2.0
842 stars 204 forks source link

Make cmdline options compatible with unicode characters #81

Open hualet opened 9 years ago

hualet commented 9 years ago

I tried to name the renderer in Chinese, but it failed while processing the command line options. In practice, I included the locale.h header file and inserted one line `setlocale(LC_ALL, "")' before the process_cmdline line in main function, it worked. Hope it can help ;)