Bug #5698 ยป fix-locale-breaks-javascript.patch
src/Wt/WStringStream.C | ||
---|---|---|
#include <cstring>
|
||
#include <stdio.h>
|
||
#include <strings.h>
|
||
#ifndef NO_ASIO
|
||
#include <boost/asio.hpp>
|
||
... | ... | |
{
|
||
char buf[50];
|
||
snprintf(buf, 50, "%g", d);
|
||
if (char *comma = index(buf, ','))
|
||
*comma = '.';
|
||
return *this << buf;
|
||
}
|
||