Merge branch 'master' of ssh://git.carlh.net/home/carl/git/libdcp
[libdcp.git] / src / raw_convert.cc
index e1b909c085d52c935387007a7bbefb8b8459e183..f51a10f6806c6cbac22d2c92dc9a41f6045b6509 100644 (file)
@@ -168,6 +168,20 @@ dcp::raw_convert (wchar_t const * v, int, bool)
        return string (w.begin(), w.end());
 }
 
+template <>
+unsigned char
+dcp::raw_convert (std::string v, int precision, bool fixed)
+{
+       return locale_convert<unsigned char> (make_local (v), precision, fixed);
+}
+
+template <>
+unsigned short int
+dcp::raw_convert (std::string v, int precision, bool fixed)
+{
+       return locale_convert<unsigned short int> (make_local (v), precision, fixed);
+}
+
 template <>
 int
 dcp::raw_convert (string v, int precision, bool fixed)