aboutsummaryrefslogtreecommitdiff
path: root/sqlite/database/driver.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sqlite/database/driver.cxx')
-rw-r--r--sqlite/database/driver.cxx13
1 files changed, 12 insertions, 1 deletions
diff --git a/sqlite/database/driver.cxx b/sqlite/database/driver.cxx
index bccdab9..cb531c6 100644
--- a/sqlite/database/driver.cxx
+++ b/sqlite/database/driver.cxx
@@ -2,9 +2,11 @@
// copyright : Copyright (c) 2009-2012 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
-// Test that database constructors are unambiguous (compilation only).
+// Test that database constructors are unambiguous and some other things.
//
+#include <cassert>
+
#include <odb/sqlite/database.hxx>
using namespace odb::sqlite;
@@ -12,6 +14,15 @@ using namespace odb::sqlite;
int
main (int argc, char* argv[])
{
+ // Test UTF-16 to UTF-8 conversion.
+ //
+#ifdef _WIN32
+ {
+ database d (L"t\x00C8st");
+ assert (d.name () == "t\xC3\x88st");
+ }
+#endif
+
// This code should not execute.
//
if (argc != 0)