Skip to content

Commit

Permalink
set locale before opening any files
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-martian committed Oct 5, 2021
1 parent 6908369 commit 5ba9594
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lexd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ void endProgram(char *name)

int main(int argc, char *argv[])
{
LtLocale::tryToSetLocale();

bool bin = false;
bool flags = false;
bool single = false;
Expand All @@ -35,8 +37,6 @@ int main(int argc, char *argv[])
UFILE* output = u_finit(stdout, NULL, NULL);
LexdCompiler comp;

LtLocale::tryToSetLocale();

#if HAVE_GETOPT_LONG
int option_index=0;
#endif
Expand Down

0 comments on commit 5ba9594

Please sign in to comment.