diff options
Diffstat (limited to 'src/locale_convert.cc')
| -rw-r--r-- | src/locale_convert.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/locale_convert.cc b/src/locale_convert.cc index 133c8a3a..0f0b5fa2 100644 --- a/src/locale_convert.cc +++ b/src/locale_convert.cc @@ -40,6 +40,24 @@ using std::wstring; template<> string +dcp::locale_convert (unsigned char x, int, bool) +{ + char buffer[64]; + snprintf (buffer, sizeof(buffer), "%hhd", x); + return buffer; +} + +template<> +string +dcp::locale_convert (unsigned short int x, int, bool) +{ + char buffer[64]; + snprintf (buffer, sizeof(buffer), "%hd", x); + return buffer; +} + +template<> +string dcp::locale_convert (int x, int, bool) { char buffer[64]; |
