Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Flamefire committed Nov 11, 2024
1 parent 9a346dd commit 562bfd2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/boost/locale/posix/numeric.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <string>
#include <vector>
#include <wctype.h>
#include <iostream>

#include "boost/locale/posix/all_generator.hpp"
#include "boost/locale/util/numeric.hpp"
Expand Down Expand Up @@ -333,8 +334,15 @@ namespace boost { namespace locale { namespace impl_posix {
#else
thousands_sep = nl_langinfo_l(THOUSEP, lc);
decimal_point = nl_langinfo_l(RADIXCHAR, lc);
std::cout << "thous: " << thousands_sep << " dec: " << decimal_point << std::endl;
# ifdef GROUPING
grouping = nl_langinfo_l(GROUPING, lc);
std::cout << "Grouping " << grouping.size();
for(const unsigned c : grouping)
std::cout << c << " ";
std::cout << std::endl;
#else
std::cout << "NO grouping\n";
# endif
#endif
}
Expand Down
3 changes: 3 additions & 0 deletions src/boost/locale/posix/posix_backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
#include "boost/locale/util/gregorian.hpp"
#include "boost/locale/util/make_std_unique.hpp"

#include <iostream>

namespace boost { namespace locale { namespace impl_posix {

class posix_localization_backend : public localization_backend {
Expand Down Expand Up @@ -69,6 +71,7 @@ namespace boost { namespace locale { namespace impl_posix {

lc_.reset();
locale_t tmp = newlocale(LC_ALL_MASK, real_id_.c_str(), nullptr);
std::cout << "NEW locale for " << locale_id_ << "->" << real_id_ << std::endl;
if(!tmp)
tmp = newlocale(LC_ALL_MASK, "C", nullptr);
if(!tmp)
Expand Down

0 comments on commit 562bfd2

Please sign in to comment.