mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-26 09:58:20 +01:00
Tweak to support non-ascii utf-8 chars from dicts. Seems to display
Catalan and Polish fine (on board.)
This commit is contained in:
parent
d86d2b556a
commit
1c8147c21c
2 changed files with 13 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
/* -*-mode: C; fill-column: 78; c-basic-offset: 4;-*- */
|
||||
/* -*-mode: C; fill-column: 78; c-basic-offset: 4; compile-command: "make MEMDEBUG=TRUE"; -*- */
|
||||
/*
|
||||
* Copyright 1997-2009 by Eric House (xwords@eehouse.org). All rights
|
||||
* reserved.
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* -*-mode: C; fill-column: 78; c-basic-offset: 4; -*- */
|
||||
/*
|
||||
* Copyright 1997 - 2000 by Eric House (xwords@eehouse.org). All rights reserved.
|
||||
* Copyright 1997 - 2009 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
|
||||
|
@ -38,7 +39,16 @@
|
|||
|
||||
typedef unsigned char XP_U8;
|
||||
typedef signed char XP_S8;
|
||||
|
||||
#ifdef XWFEATURE_UNICODE
|
||||
typedef gchar XP_UCHAR;
|
||||
# define XP_L(s) s
|
||||
# define XP_S XP_L("%s")
|
||||
#else
|
||||
/* This doesn't work. Turn on UNICODE for now... */
|
||||
typedef char XP_UCHAR;
|
||||
# define XP_L(s) ##s
|
||||
#endif
|
||||
|
||||
typedef unsigned short XP_U16;
|
||||
typedef signed short XP_S16;
|
||||
|
@ -55,8 +65,7 @@ typedef guint32 XP_Time;
|
|||
typedef unsigned long XP_Time;
|
||||
#endif
|
||||
|
||||
#define XP_CR "\n"
|
||||
#define XP_S "%s"
|
||||
#define XP_CR XP_L("\n")
|
||||
|
||||
#define XP_STATUSF XP_DEBUGF
|
||||
#define XP_LOGF XP_DEBUGF
|
||||
|
|
Loading…
Reference in a new issue