unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: bug-guile@gnu.org
Subject: Re: i18n broken on mingw cross compile
Date: Tue, 09 Sep 2008 11:30:30 +0200	[thread overview]
Message-ID: <87ljy17jk9.fsf@gnu.org> (raw)
In-Reply-To: ga3blo$obt$1@ger.gmane.org

[-- Attachment #1: Type: text/plain, Size: 1293 bytes --]

Hi,

Han-Wen Nienhuys <hanwen@xs4all.nl> writes:

> i686-mingw32-gcc -mms-bitfields -DHAVE_CONFIG_H -I/home/lilydev/vc/gub/target/mingw/src/guile-1.9.git -I.. -I/home/lilydev/vc/gub/target/mingw/src/guile-1.9.git/lib -I../lib -Wall -Wmissing-prototypes -g -O2 -MT libguile_i18n_v_0_la-i18n.lo -MD -MP -MF .deps/libguile_i18n_v_0_la-i18n.Tpo -c /home/lilydev/vc/gub/target/mingw/src/guile-1.9.git/libguile/i18n.c  -DDLL_EXPORT -DPIC -o .libs/libguile_i18n_v_0_la-i18n.o
> In file included from /home/lilydev/vc/gub/target/mingw/src/guile-1.9.git/libguile/i18n.c:296:
> /home/lilydev/vc/gub/target/mingw/src/guile-1.9.git/libguile/locale-categories.h: In function 'get_current_locale_settings':
> /home/lilydev/vc/gub/target/mingw/src/guile-1.9.git/libguile/locale-categories.h:24: error: 'LC_MESSAGES' undeclared (first use in this function)
> /home/lilydev/vc/gub/target/mingw/src/guile-1.9.git/libguile/locale-categories.h:24: error: (Each undeclared identifier is reported only once
> /home/lilydev/vc/gub/target/mingw/src/guile-1.9.git/libguile/locale-categories.h:24: error: for each function it appears in.)

Can you try out the attached patch?

> does this ring a bell with anyone?  This was working with
>
>   release_1-8-5

Certainly not: there's no such code in 1.8.

Thanks,
Ludo'.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: The patch --]
[-- Type: text/x-patch, Size: 827 bytes --]

diff --git a/libguile/locale-categories.h b/libguile/locale-categories.h
index cec91fb..cbe9684 100644
--- a/libguile/locale-categories.h
+++ b/libguile/locale-categories.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2006 Free Software Foundation, Inc.
+/* Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -21,7 +21,12 @@
 /* The six standard categories, as defined in IEEE Std 1003.1-2001.  */
 SCM_DEFINE_LOCALE_CATEGORY (COLLATE)
 SCM_DEFINE_LOCALE_CATEGORY (CTYPE)
+
+#ifdef LC_MESSAGES
+/* MinGW doesn't have `LC_MESSAGES'.  */
 SCM_DEFINE_LOCALE_CATEGORY (MESSAGES)
+#endif
+
 SCM_DEFINE_LOCALE_CATEGORY (MONETARY)
 SCM_DEFINE_LOCALE_CATEGORY (NUMERIC)
 SCM_DEFINE_LOCALE_CATEGORY (TIME)

  reply	other threads:[~2008-09-09  9:30 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-08 14:07 i18n broken on mingw cross compile Han-Wen Nienhuys
2008-09-09  9:30 ` Ludovic Courtès [this message]
2008-09-09 14:02   ` Han-Wen Nienhuys
2008-09-09 14:42     ` Ludovic Courtès
2008-09-10  2:38   ` Han-Wen Nienhuys
2008-09-11 19:41     ` Ludovic Courtès
2008-09-12  7:45       ` Ludovic Courtès
2008-09-13  3:27         ` Han-Wen Nienhuys
2008-09-13  3:54         ` Han-Wen Nienhuys
2008-09-13 13:55           ` Ludovic Courtès
2008-09-13 15:13             ` Han-Wen Nienhuys
2008-09-13 18:16               ` Ludovic Courtès
2008-09-13 18:50                 ` Han-Wen Nienhuys
2008-09-13 20:06                   ` Ludovic Courtès
2008-09-13 15:47             ` Han-Wen Nienhuys

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ljy17jk9.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=bug-guile@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).