delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2012/11/18/09:11:45

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:in-reply-to:references:date:message-id:subject:from:to
:content-type;
bh=xyJUvU6bE78f7uSdWJuGy5fmSg+35z1PqnAT1jeejtU=;
b=PoIwhLnUwqjM7+qQurvmV5pC7cK/6/rcFYfBgHsb+G5+/RTRFURx24Xor2tPbDOTeZ
pY+Y2xbj2z8c1/t6rrXAQKBC5UlySBIPgnyO6k246quNgqpUnPXilTFdczcQdyccIZlV
Q5jk39A1RRr4K5tG/Q9V+XKd9ghcZtHRDp3autrlp8l4ZNrpibVQF0ERdiy/t1Vtenyz
UktPhEmWRskRJ8CZX9CdC/Gnwz1vyPeozoV+Lq3aq2Pu04ec8pf6Nb9Z2OH0am3NfLfN
4NzJdfjoqm3zk3MPqVPVusfmkJGmThqT+T4GXoZm4B1rMuGw9o/mTgSjulzj93opTBP/
WUiw==
MIME-Version: 1.0
In-Reply-To: <20121118123027.272B08134615@turkos.aspodata.se>
References: <20121113211401 DOT 20747813A49B AT turkos DOT aspodata DOT se>
<CAOuGh89nhtaPkKZ+0CJGn9V_XnZyi6YD-NndT53FHoAyYD0LFw AT mail DOT gmail DOT com>
<20121115210903 DOT 90A4881345E3 AT turkos DOT aspodata DOT se>
<CAPYb0EE-xqA681-iq9AwnL7Wq1j9NL7AP383X5qe5QeCZZW0Ug AT mail DOT gmail DOT com>
<20121116135510 DOT 6D56B81345EB AT turkos DOT aspodata DOT se>
<CAOuGh8_tCu_CM=RCRPDAoJMObszqWpjG29-37rAUAHyBN18uSw AT mail DOT gmail DOT com>
<20121116204345 DOT 9377B81345F9 AT turkos DOT aspodata DOT se>
<CAOuGh88CA2c+HNu+9QqGZZ2oLSeNHq5bsgvcWDqhQ+5nB_aAbg AT mail DOT gmail DOT com>
<20121116222416 DOT 4B63C81345FC AT turkos DOT aspodata DOT se>
<20121118123027 DOT 272B08134615 AT turkos DOT aspodata DOT se>
Date: Sun, 18 Nov 2012 09:10:32 -0500
Message-ID: <CAPYb0EFmbs-xqhgCfwbPuB-gMc+CTO1fv2ESZkUX5u_5WgSnNA@mail.gmail.com>
Subject: Re: [geda-user] Bug #903129 Translations don't work on Windows
From: Bob Paddock <bob DOT paddock AT gmail DOT com>
To: geda-user AT delorie DOT com
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> And tomorrow became today.
> Bob, or anyone, could you test the attached program.

Can't say I understand this:

#ifdef __linux__
#define MAX_PATH 400
struct HINSTANCE_t {
  const char *filename;
};
....

Why would __linux__ defined and care about:

HINSTANCE GetModuleHandle(void *handle) {
  (void) handle;
  gg.filename = "c:\\gEDA\\bin\\gschem";
  return &gg;
}

?


> I don't know how to compile it for MS-Windows.

If you have Windows the easiest way is:

http://nuwen.net/mingw.html gets you most of what you need.
There will still be a few missing libraries.

The other way to do it on Windows is with Cygwin,
where it has the libraries but is a lot slower.
http://www.cygwin.com/

If you don't have Windows then the minipack cross compiler setup is
part of the current distribution.
Someone was working on making a mxe.cc cross compiler version but not
have heard anymore about it (Anyone know its status?).
http://mxe.cc/

> Which version of get_locale() do you like, should we use?

I'll have to run this code and see what it does, for example:
 strncpy(cc, "\\share\\locale", sz - len);
should that be strncat()?

Both strncpy and strncat will result in buffer overflows if all of
MAX_PATH is used; sz -(len -1) would fix.

I like your Alt2 better as it is shorter.
As you already said there is already a dependency on glib.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019