Skip to content

Commit

Permalink
Merge pull request #131 from aysanorhun/master
Browse files Browse the repository at this point in the history
fixed hardcoded locale and updated the python setup file
  • Loading branch information
bakwc authored Aug 29, 2024
2 parents a412620 + 28bb2f7 commit 25d3f5c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions jamspell/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void SaveFile(const std::string& fileName, const std::string& data) {
}

TTokenizer::TTokenizer()
: Locale("en_US.utf-8")
: Locale(std::locale::classic())
{
}

Expand Down Expand Up @@ -135,7 +135,7 @@ uint64_t GetCurrentTimeMs() {
return ms.count();
}

static const std::locale GLocale("en_US.UTF-8");
static const std::locale GLocale(std::locale::classic());
static const std::ctype<wchar_t>& GWctype = std::use_facet<std::ctype<wchar_t>>(GLocale);

void ToLower(std::wstring& text) {
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import os
import sys
from distutils.command.build import build
from distutils.command.build_ext import build_ext
from setuptools.command.build import build
from setuptools.command.build_ext import build_ext
from setuptools.command.install import install
from distutils.spawn import find_executable
from shutil import which as find_executable
from setuptools import setup
from setuptools.extension import Extension
import subprocess
Expand Down

0 comments on commit 25d3f5c

Please sign in to comment.