Mercurial > dedupe
changeset 102:5906661c0421
New attempt on getting correct encodings.
| author | Tom Fredrik Blenning Klaussen <bfg@bfgconsult.no> |
|---|---|
| date | Thu, 13 Feb 2014 15:20:37 +0100 |
| parents | 6c6f3a5f96ea |
| children | 6b997f4f7e19 |
| files | Apps/updateDeDupe.cpp |
| diffstat | 1 files changed, 15 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Apps/updateDeDupe.cpp Thu Feb 13 15:19:37 2014 +0100 +++ b/Apps/updateDeDupe.cpp Thu Feb 13 15:20:37 2014 +0100 @@ -1,3 +1,5 @@ + + #include "DataController.hpp" #include "Exception/Exception.hpp" @@ -5,11 +7,24 @@ #include <iostream> #include <QtCore/QList> #include <boost/foreach.hpp> +#include <boost/archive/detail/utf8_codecvt_facet.hpp> +#include <locale> +#include <boost/archive/add_facet.hpp> +//#include <codecvt> int main(int argc, char *argv[]) { QStringList paths; + /* + typedef wchar_t ucs4_t; + + std::locale old_locale; + std::locale utf8_locale(old_locale, new utf8_codecvt_facet<ucs4_t>); + + // Set a New global locale + //std::locale::global(utf8_locale); + */ for (int i = 1; i < argc; ++i) { char path_buf[PATH_MAX]; realpath(argv[i], path_buf); @@ -32,5 +47,3 @@ } } - -
