From 7698393780c8e06fb104168ddd4f4b19aa162119 Mon Sep 17 00:00:00 2001 From: ehouse Date: Sun, 25 Jan 2009 20:31:13 +0000 Subject: [PATCH] cleanup; set locale based on ENV --- common/dictnry.c | 2 +- linux/gtkmain.h | 4 +++- linux/linuxmain.c | 3 +++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/common/dictnry.c b/common/dictnry.c index f91180349..fd178c3bf 100644 --- a/common/dictnry.c +++ b/common/dictnry.c @@ -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 diff --git a/linux/gtkmain.h b/linux/gtkmain.h index ff47c1cb5..e53bd9859 100644 --- a/linux/gtkmain.h +++ b/linux/gtkmain.h @@ -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 diff --git a/linux/linuxmain.c b/linux/linuxmain.c index 52f8c456b..bbbab129e 100644 --- a/linux/linuxmain.c +++ b/linux/linuxmain.c @@ -21,6 +21,7 @@ #include #include #include +#include #include /* gethostbyname */ #include @@ -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() );