mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-11-16 07:48:07 +01:00
cleanup; set locale based on ENV
This commit is contained in:
parent
b7fa674c28
commit
3a643c51a4
3 changed files with 7 additions and 2 deletions
|
@ -384,7 +384,7 @@ dict_getFaceBitmaps( const DictionaryCtxt* dict, Tile tile, XP_Bitmaps* bmps )
|
|||
bmps->nBitmaps = 2;
|
||||
bmps->bmps[0] = bitmaps->smallBM;
|
||||
bmps->bmps[1] = bitmaps->largeBM;
|
||||
} /* dict_getFaceBitmap */
|
||||
} /* dict_getFaceBitmaps */
|
||||
|
||||
#ifdef TALL_FONTS
|
||||
XP_LangCode
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
/* -*- mode: C; fill-column: 78; c-basic-offset: 4; -*- */
|
||||
/* Copyright 1997 - 2005 by Eric House (xwords@eehouse.org) (fixin@peak.org). All rights reserved.
|
||||
/* Copyright 1997 - 2005 by Eric House (xwords@eehouse.org) All rights
|
||||
* reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#include <unistd.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/stat.h>
|
||||
#include <locale.h>
|
||||
|
||||
#include <netdb.h> /* gethostbyname */
|
||||
#include <errno.h>
|
||||
|
@ -668,6 +669,8 @@ main( int argc, char** argv )
|
|||
const char* btaddr = NULL;
|
||||
#endif
|
||||
|
||||
setlocale(LC_ALL, "");
|
||||
|
||||
XP_LOGF( "main started: pid = %d", getpid() );
|
||||
#ifdef DEBUG
|
||||
syslog( LOG_DEBUG, "main started: pid = %d", getpid() );
|
||||
|
|
Loading…
Reference in a new issue