Menu

#3 HTTP server breaks with non-english locales

v0.x
open
nobody
None
5
2013-09-06
2013-09-06
Georg Rudoy
No

Hi!

Seems like date around http/hhttp_messagecreator_p.cpp:63 gets formatted according to the current locale.

Running my test server app with Russian locale and trying to discover it with VLC leads to a bunch of errors from the latter like this:
[0x7f80784f98f8] upnp services discovery warning: Could not download device description! Fetching data from http://10.0.0.1:37221/dc4c23f0-e7b8-4d07-863e-8366b9741b84/device_description.xml failed: UPNP_E_BAD_HTTPMSG

Wireshark dump shows that DATE header in the reply contains cyrillic letters. Obviously at least VLC doesn't like it, since running the app with LANG=C fixes the issue.

IMHO, though, it would be great if this wouldn't depend upon current locale.

Discussion


Log in to post a comment.