]> git.lyx.org Git - lyx.git/blob - development/Win32/patches/msvc/gettext-0.15.patch
tiny encoding fix for LyXWinInstaller
[lyx.git] / development / Win32 / patches / msvc / gettext-0.15.patch
1 diff -riwBu -Xex gettext-0.15\gettext-runtime\config.h.msvc gettext-0.15-modified\gettext-runtime\config.h.msvc\r
2 --- gettext-0.15\gettext-runtime\config.h.msvc  Fri Jul 21 16:30:08 2006\r
3 +++ gettext-0.15-modified\gettext-runtime\config.h.msvc Sat Oct 21 23:37:47 2006\r
4 @@ -1,5 +1,7 @@\r
5  /* config.h.in.  Generated from configure.ac by autoheader.  */\r
6  \r
7 +#define EXEEXT '.exe'\r
8 +\r
9  /* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP\r
10     systems. This function is required for `alloca.c' support on those systems.\r
11     */\r
12 diff -riwBu -Xex gettext-0.15\gettext-runtime\intl\Makefile.msvc gettext-0.15-modified\gettext-runtime\intl\Makefile.msvc\r
13 --- gettext-0.15\gettext-runtime\intl\Makefile.msvc     Mon Aug 01 13:14:02 2005\r
14 +++ gettext-0.15-modified\gettext-runtime\intl\Makefile.msvc    Fri Oct 20 12:23:09 2006\r
15 @@ -204,6 +204,7 @@\r
16  # intl.dll and intl.lib are created together.\r
17  intl.lib : $(OBJECTS) $(RESOURCES)\r
18         $(CC) $(MFLAGS) $(DEBUGFLAGS) -LD $(OBJECTS) $(libdir)\iconv.lib $(RESOURCES) -Feintl.dll\r
19 +       mt.exe -manifest intl.dll.manifest -outputresource:intl.dll;2\r
20  \r
21  intl.res : $(srcdir)\..\windows\intl.rc\r
22         rc -Fo intl.res $(srcdir)\..\windows\intl.rc\r
23 diff -riwBu -Xex gettext-0.15\gettext-runtime\src\Makefile.msvc gettext-0.15-modified\gettext-runtime\src\Makefile.msvc\r
24 --- gettext-0.15\gettext-runtime\src\Makefile.msvc      Thu Feb 10 17:49:08 2005\r
25 +++ gettext-0.15-modified\gettext-runtime\src\Makefile.msvc     Fri Oct 20 12:22:23 2006\r
26 @@ -107,12 +107,15 @@\r
27  \r
28  gettext.exe : $(gettext_OBJECTS)\r
29         $(CC) $(MFLAGS) $(DEBUGFLAGS) $(gettext_OBJECTS) ..\lib\grt.lib ..\intl\intl.lib $(libdir)\iconv.lib $(LDADD) -Fegettext.exe\r
30 +       mt.exe -manifest gettext.exe.manifest -outputresource:gettext.exe;1\r
31  \r
32  ngettext.exe : $(ngettext_OBJECTS)\r
33         $(CC) $(MFLAGS) $(DEBUGFLAGS) $(ngettext_OBJECTS) ..\lib\grt.lib ..\intl\intl.lib $(libdir)\iconv.lib $(LDADD) -Fengettext.exe\r
34 +       mt.exe -manifest ngettext.exe.manifest -outputresource:ngettext.exe;1\r
35  \r
36  envsubst.exe : $(envsubst_OBJECTS)\r
37         $(CC) $(MFLAGS) $(DEBUGFLAGS) $(ngettext_OBJECTS) ..\lib\grt.lib ..\intl\intl.lib $(libdir)\iconv.lib $(LDADD) -Feenvsubst.exe\r
38 +       mt.exe -manifest envsubst.exe.manifest -outputresource:envsubst.exe;1\r
39  \r
40  install : all force\r
41         -mkdir $(prefix)\r
42 diff -riwBu -Xex gettext-0.15\gettext-tools\config.h.msvc gettext-0.15-modified\gettext-tools\config.h.msvc\r
43 --- gettext-0.15\gettext-tools\config.h.msvc    Fri Jul 21 16:30:18 2006\r
44 +++ gettext-0.15-modified\gettext-tools\config.h.msvc   Wed Oct 18 23:51:07 2006\r
45 @@ -1,5 +1,6 @@\r
46  /* config.h.in.  Generated from configure.ac by autoheader.  */\r
47  \r
48 +#define EXEEXT '.exe'\r
49  \r
50  /* Default value for alignment of strings in .mo file.  */\r
51  #define DEFAULT_OUTPUT_ALIGNMENT 1\r
52 diff -riwBu -Xex gettext-0.15\gettext-tools\lib\addext.c gettext-0.15-modified\gettext-tools\lib\addext.c\r
53 --- gettext-0.15\gettext-tools\lib\addext.c     Mon Apr 24 13:17:08 2006\r
54 +++ gettext-0.15-modified\gettext-tools\lib\addext.c    Sat Oct 14 00:03:13 2006\r
55 @@ -43,7 +43,9 @@\r
56  # include <strings.h>\r
57  #endif\r
58  \r
59 +#ifdef HAVE_UNISTD_H\r
60  #include <unistd.h>\r
61 +#endif\r
62  \r
63  #include "basename.h"\r
64  \r
65 diff -riwBu -Xex gettext-0.15\gettext-tools\lib\clean-temp.c gettext-0.15-modified\gettext-tools\lib\clean-temp.c\r
66 --- gettext-0.15\gettext-tools\lib\clean-temp.c Mon Jul 03 17:13:08 2006\r
67 +++ gettext-0.15-modified\gettext-tools\lib\clean-temp.c        Sat Oct 14 00:04:01 2006\r
68 @@ -28,7 +28,10 @@\r
69  #include <stdbool.h>\r
70  #include <stdlib.h>\r
71  #include <string.h>\r
72 +\r
73 +#ifdef HAVE_UNISTD_H\r
74  #include <unistd.h>\r
75 +#endif\r
76  \r
77  #include "error.h"\r
78  #include "fatal-signal.h"\r
79 diff -riwBu -Xex gettext-0.15\gettext-tools\lib\copy-file.c gettext-0.15-modified\gettext-tools\lib\copy-file.c\r
80 --- gettext-0.15\gettext-tools\lib\copy-file.c  Mon Apr 24 13:17:08 2006\r
81 +++ gettext-0.15-modified\gettext-tools\lib\copy-file.c Sat Oct 14 00:05:52 2006\r
82 @@ -28,7 +28,10 @@\r
83  #include <fcntl.h>\r
84  #include <stddef.h>\r
85  #include <sys/stat.h>\r
86 +\r
87 +#ifdef HAVE_UNISTD_H\r
88  #include <unistd.h>\r
89 +#endif\r
90  \r
91  #if HAVE_UTIME || HAVE_UTIMES\r
92  # if HAVE_UTIME_H\r
93 diff -riwBu -Xex gettext-0.15\gettext-tools\lib\execute.c gettext-0.15-modified\gettext-tools\lib\execute.c\r
94 --- gettext-0.15\gettext-tools\lib\execute.c    Mon Apr 24 13:17:08 2006\r
95 +++ gettext-0.15-modified\gettext-tools\lib\execute.c   Sat Oct 14 00:07:17 2006\r
96 @@ -29,7 +29,10 @@\r
97  #include <stdbool.h>\r
98  #include <stdlib.h>\r
99  #include <signal.h>\r
100 +\r
101 +#ifdef HAVE_UNISTD_H\r
102  #include <unistd.h>\r
103 +#endif\r
104  \r
105  #include "error.h"\r
106  #include "exit.h"\r
107 diff -riwBu -Xex gettext-0.15\gettext-tools\lib\fatal-signal.c gettext-0.15-modified\gettext-tools\lib\fatal-signal.c\r
108 --- gettext-0.15\gettext-tools\lib\fatal-signal.c       Mon Apr 24 13:17:08 2006\r
109 +++ gettext-0.15-modified\gettext-tools\lib\fatal-signal.c      Sat Oct 14 00:07:42 2006\r
110 @@ -27,7 +27,10 @@\r
111  #include <stdbool.h>\r
112  #include <stdlib.h>\r
113  #include <signal.h>\r
114 +\r
115 +#ifdef HAVE_UNISTD_H\r
116  #include <unistd.h>\r
117 +#endif\r
118  \r
119  #include "xalloc.h"\r
120  \r
121 diff -riwBu -Xex gettext-0.15\gettext-tools\lib\findprog.c gettext-0.15-modified\gettext-tools\lib\findprog.c\r
122 --- gettext-0.15\gettext-tools\lib\findprog.c   Mon Apr 24 13:17:08 2006\r
123 +++ gettext-0.15-modified\gettext-tools\lib\findprog.c  Sat Oct 14 00:08:03 2006\r
124 @@ -27,7 +27,10 @@\r
125  #include <stdbool.h>\r
126  #include <stdlib.h>\r
127  #include <string.h>\r
128 +\r
129 +#ifdef HAVE_UNISTD_H\r
130  #include <unistd.h>\r
131 +#endif\r
132  \r
133  #include "xalloc.h"\r
134  #include "pathname.h"\r
135 diff -riwBu -Xex gettext-0.15\gettext-tools\lib\getopt_.h gettext-0.15-modified\gettext-tools\lib\getopt_.h\r
136 --- gettext-0.15\gettext-tools\lib\getopt_.h    Mon Apr 24 13:17:08 2006\r
137 +++ gettext-0.15-modified\gettext-tools\lib\getopt_.h   Fri Oct 13 23:13:47 2006\r
138 @@ -42,7 +42,9 @@\r
139  #if defined __GETOPT_PREFIX && !defined __need_getopt\r
140  # include <stdlib.h>\r
141  # include <stdio.h>\r
142 +#ifdef HAVE_UNISTD_H\r
143  # include <unistd.h>\r
144 +#endif\r
145  # undef __need_getopt\r
146  # undef getopt\r
147  # undef getopt_long\r
148 diff -riwBu -Xex gettext-0.15\gettext-tools\lib\gettext.h gettext-0.15-modified\gettext-tools\lib\gettext.h\r
149 --- gettext-0.15\gettext-tools\lib\gettext.h    Fri Jun 09 22:29:10 2006\r
150 +++ gettext-0.15-modified\gettext-tools\lib\gettext.h   Sat Oct 14 00:28:04 2006\r
151 @@ -142,8 +142,10 @@\r
152  \r
153  #include <string.h>\r
154  \r
155 +#ifndef _MSC_VER\r
156  #define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS \\r
157    (__GNUC__ >= 3 || defined __cplusplus)\r
158 +#endif\r
159  \r
160  #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS\r
161  #include <stdlib.h>\r
162 diff -riwBu -Xex gettext-0.15\gettext-tools\lib\javacomp.c gettext-0.15-modified\gettext-tools\lib\javacomp.c\r
163 --- gettext-0.15\gettext-tools\lib\javacomp.c   Tue Jul 11 14:08:16 2006\r
164 +++ gettext-0.15-modified\gettext-tools\lib\javacomp.c  Sat Oct 14 00:08:25 2006\r
165 @@ -29,7 +29,11 @@\r
166  #include <stdio.h>\r
167  #include <stdlib.h>\r
168  #include <string.h>\r
169 +\r
170 +#ifdef HAVE_UNISTD_H\r
171  #include <unistd.h>\r
172 +#endif\r
173 +\r
174  #include <sys/types.h>\r
175  #include <sys/stat.h>\r
176  \r
177 diff -riwBu -Xex gettext-0.15\gettext-tools\lib\mkdtemp.c gettext-0.15-modified\gettext-tools\lib\mkdtemp.c\r
178 --- gettext-0.15\gettext-tools\lib\mkdtemp.c    Fri Jun 30 16:17:32 2006\r
179 +++ gettext-0.15-modified\gettext-tools\lib\mkdtemp.c   Sat Oct 14 00:10:09 2006\r
180 @@ -46,7 +46,9 @@\r
181  # include <inttypes.h>\r
182  #endif\r
183  \r
184 +#ifdef HAVE_UNISTD_H\r
185  #include <unistd.h>\r
186 +#endif\r
187  \r
188  #if HAVE_GETTIMEOFDAY || _LIBC\r
189  # if HAVE_SYS_TIME_H || _LIBC\r
190 diff -riwBu -Xex gettext-0.15\gettext-tools\lib\pathmax.h gettext-0.15-modified\gettext-tools\lib\pathmax.h\r
191 --- gettext-0.15\gettext-tools\lib\pathmax.h    Mon Apr 24 13:17:08 2006\r
192 +++ gettext-0.15-modified\gettext-tools\lib\pathmax.h   Sat Oct 14 00:05:25 2006\r
193 @@ -18,7 +18,9 @@\r
194  #ifndef _PATHMAX_H\r
195  # define _PATHMAX_H\r
196  \r
197 +#ifdef HAVE_UNISTD_H\r
198  # include <unistd.h>\r
199 +#endif\r
200  \r
201  /* Non-POSIX BSD systems might have gcc's limits.h, which doesn't define\r
202     PATH_MAX but might cause redefinition warnings when sys/param.h is\r
203 diff -riwBu -Xex gettext-0.15\gettext-tools\lib\pipe.c gettext-0.15-modified\gettext-tools\lib\pipe.c\r
204 --- gettext-0.15\gettext-tools\lib\pipe.c       Mon Apr 24 13:17:08 2006\r
205 +++ gettext-0.15-modified\gettext-tools\lib\pipe.c      Sat Oct 14 00:06:14 2006\r
206 @@ -28,7 +28,10 @@\r
207  #include <fcntl.h>\r
208  #include <stdlib.h>\r
209  #include <signal.h>\r
210 +\r
211 +#ifdef HAVE_UNISTD_H\r
212  #include <unistd.h>\r
213 +#endif\r
214  \r
215  #include "error.h"\r
216  #include "exit.h"\r
217 diff -riwBu -Xex gettext-0.15\gettext-tools\lib\pipe.h gettext-0.15-modified\gettext-tools\lib\pipe.h\r
218 --- gettext-0.15\gettext-tools\lib\pipe.h       Mon Apr 24 13:17:08 2006\r
219 +++ gettext-0.15-modified\gettext-tools\lib\pipe.h      Sat Oct 14 00:06:34 2006\r
220 @@ -21,7 +21,11 @@\r
221  \r
222  /* Get pid_t.  */\r
223  #include <stdlib.h>\r
224 +\r
225 +#ifdef HAVE_UNISTD_H\r
226  #include <unistd.h>\r
227 +#endif\r
228 +\r
229  #include <sys/types.h>\r
230  \r
231  #include <stdbool.h>\r
232 diff -riwBu -Xex gettext-0.15\gettext-tools\lib\progreloc.c gettext-0.15-modified\gettext-tools\lib\progreloc.c\r
233 --- gettext-0.15\gettext-tools\lib\progreloc.c  Wed May 17 12:12:44 2006\r
234 +++ gettext-0.15-modified\gettext-tools\lib\progreloc.c Sat Oct 21 23:39:19 2006\r
235 @@ -313,7 +313,7 @@\r
236                  the filenames may have undergone a case conversion since\r
237                  they were packaged.  In other words, EXEEXT may be ".exe"\r
238                  on one system and ".EXE" on another.  */\r
239 -             static const char exeext[] = EXEEXT;\r
240 +             static const char exeext = EXEEXT;\r
241               const char *s1 = argv0 + argv0_len - exeext_len;\r
242               const char *s2 = exeext;\r
243               for (; *s1 != '\0'; s1++, s2++)\r
244 diff -riwBu -Xex gettext-0.15\gettext-tools\lib\safe-read.c gettext-0.15-modified\gettext-tools\lib\safe-read.c\r
245 --- gettext-0.15\gettext-tools\lib\safe-read.c  Mon Apr 24 13:17:08 2006\r
246 +++ gettext-0.15-modified\gettext-tools\lib\safe-read.c Sat Oct 14 00:09:37 2006\r
247 @@ -29,7 +29,10 @@\r
248  \r
249  /* Get ssize_t.  */\r
250  #include <sys/types.h>\r
251 +\r
252 +#ifdef HAVE_UNISTD_H\r
253  #include <unistd.h>\r
254 +#endif\r
255  \r
256  #include <errno.h>\r
257  \r
258 diff -riwBu -Xex gettext-0.15\gettext-tools\lib\unsetenv.c gettext-0.15-modified\gettext-tools\lib\unsetenv.c\r
259 --- gettext-0.15\gettext-tools\lib\unsetenv.c   Sat Jun 17 17:51:52 2006\r
260 +++ gettext-0.15-modified\gettext-tools\lib\unsetenv.c  Sat Oct 14 00:10:34 2006\r
261 @@ -27,7 +27,10 @@\r
262  \r
263  #include <stdlib.h>\r
264  #include <string.h>\r
265 +\r
266 +#ifdef HAVE_UNISTD_H\r
267  #include <unistd.h>\r
268 +#endif\r
269  \r
270  #if !_LIBC\r
271  # define __environ     environ\r
272 diff -riwBu -Xex gettext-0.15\gettext-tools\lib\wait-process.h gettext-0.15-modified\gettext-tools\lib\wait-process.h\r
273 --- gettext-0.15\gettext-tools\lib\wait-process.h       Mon Apr 24 13:17:08 2006\r
274 +++ gettext-0.15-modified\gettext-tools\lib\wait-process.h      Sat Oct 14 00:06:56 2006\r
275 @@ -21,7 +21,11 @@\r
276  \r
277  /* Get pid_t.  */\r
278  #include <stdlib.h>\r
279 +\r
280 +#ifdef HAVE_UNISTD_H\r
281  #include <unistd.h>\r
282 +#endif\r
283 +\r
284  #include <sys/types.h>\r
285  \r
286  #include <stdbool.h>\r
287 diff -riwBu -Xex gettext-0.15\gettext-tools\lib\xvasprintf.c gettext-0.15-modified\gettext-tools\lib\xvasprintf.c\r
288 --- gettext-0.15\gettext-tools\lib\xvasprintf.c Tue May 09 19:01:24 2006\r
289 +++ gettext-0.15-modified\gettext-tools\lib\xvasprintf.c        Wed Oct 18 22:21:39 2006\r
290 @@ -22,6 +22,13 @@\r
291  /* Specification.  */\r
292  #include "xvasprintf.h"\r
293  \r
294 +#ifndef va_copy\r
295 +\r
296 +/* Assumes typical stack machine */\r
297 +#define va_copy(dst, src) ((void)((dst) = (src)))\r
298 +\r
299 +#endif \r
300 +\r
301  #include <errno.h>\r
302  #include <limits.h>\r
303  #include <string.h>\r
304 diff -riwBu -Xex gettext-0.15\gettext-tools\src\Makefile.msvc gettext-0.15-modified\gettext-tools\src\Makefile.msvc\r
305 --- gettext-0.15\gettext-tools\src\Makefile.msvc        Wed Mar 29 13:29:20 2006\r
306 +++ gettext-0.15-modified\gettext-tools\src\Makefile.msvc       Fri Oct 20 12:20:56 2006\r
307 @@ -122,14 +122,18 @@\r
308    write-stringtable.obj \\r
309    write-po.obj \\r
310    msgl-ascii.obj \\r
311 +  msgl-check.obj \\r
312    msgl-iconv.obj \\r
313    msgl-equal.obj \\r
314    msgl-cat.obj \\r
315    msgl-english.obj \\r
316 +  msgl-fsearch.obj \\r
317    file-list.obj \\r
318    msgl-charset.obj \\r
319    po-time.obj \\r
320 -  plural.obj \\r
321 +  po-xerror.obj \\r
322 +  plural-exp.obj \\r
323 +  plural-eval.obj \\r
324    plural-table.obj \\r
325    format.obj \\r
326    format-c.obj \\r
327 @@ -224,6 +228,9 @@\r
328  msgl-ascii.obj : msgl-ascii.c\r
329         $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c msgl-ascii.c\r
330  \r
331 +msgl-check.obj : msgl-check.c\r
332 +       $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c msgl-check.c\r
333 +\r
334  msgl-iconv.obj : msgl-iconv.c\r
335         $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c msgl-iconv.c\r
336  \r
337 @@ -245,8 +252,11 @@\r
338  po-time.obj : po-time.c\r
339         $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c po-time.c\r
340  \r
341 -plural.obj : plural.c\r
342 -       $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c plural.c\r
343 +po-xerror.obj : po-xerror.c\r
344 +       $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c po-xerror.c\r
345 +\r
346 +plural-exp.obj : plural-exp.c\r
347 +       $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c plural-exp.c\r
348  \r
349  plural-table.obj : plural-table.c\r
350         $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c plural-table.c\r
351 @@ -322,6 +332,7 @@\r
352  # gettextsrc.dll and gettextsrc.lib are created together.\r
353  gettextsrc.lib : ..\windows\gettextsrc.def $(OBJECTS) $(RESOURCES)\r
354         $(CC) $(MFLAGS) $(DEBUGFLAGS) -LD ..\windows\gettextsrc.def $(OBJECTS) ..\lib\gettextlib.lib ..\intl\intl.lib $(libdir)\iconv.lib $(RESOURCES) -Fegettextsrc.dll\r
355 +       mt.exe -manifest gettextsrc.dll.manifest -outputresource:gettextsrc.dll;2\r
356  \r
357  gettextsrc.res : ../windows/gettextsrc.rc\r
358         rc -Fo gettextsrc.res ../windows/gettextsrc.rc\r
359 @@ -488,51 +499,67 @@\r
360  \r
361  msgcmp.exe : $(msgcmp_OBJECTS)\r
362         $(CC) $(MFLAGS) $(DEBUGFLAGS) $(msgcmp_OBJECTS) gettextsrc.lib ..\lib\gettextlib.lib ..\intl\intl.lib $(libdir)\iconv.lib $(LDADD) -Femsgcmp.exe\r
363 +       mt.exe -manifest msgcmp.exe.manifest -outputresource:msgcmp.exe;1\r
364  \r
365  msgfmt.exe : $(msgfmt_OBJECTS)\r
366         $(CC) $(MFLAGS) $(DEBUGFLAGS) $(msgfmt_OBJECTS) gettextsrc.lib ..\lib\gettextlib.lib ..\intl\intl.lib $(libdir)\iconv.lib $(LDADD) -Femsgfmt.exe\r
367 +       mt.exe -manifest msgfmt.exe.manifest -outputresource:msgfmt.exe;1       \r
368  \r
369  msgmerge.exe : $(msgmerge_OBJECTS)\r
370         $(CC) $(MFLAGS) $(DEBUGFLAGS) $(msgmerge_OBJECTS) gettextsrc.lib ..\lib\gettextlib.lib ..\intl\intl.lib $(libdir)\iconv.lib $(LDADD) -Femsgmerge.exe\r
371 +       mt.exe -manifest msgmerge.exe.manifest -outputresource:msgmerge.exe;1   \r
372  \r
373  msgunfmt.exe : $(msgunfmt_OBJECTS)\r
374         $(CC) $(MFLAGS) $(DEBUGFLAGS) $(msgunfmt_OBJECTS) gettextsrc.lib ..\lib\gettextlib.lib ..\intl\intl.lib $(libdir)\iconv.lib $(LDADD) -Femsgunfmt.exe\r
375 +       mt.exe -manifest msgunfmt.exe.manifest -outputresource:msgunfmt.exe;1   \r
376  \r
377  xgettext.exe : $(xgettext_OBJECTS)\r
378         $(CC) $(MFLAGS) $(DEBUGFLAGS) $(xgettext_OBJECTS) ..\libuniname\uniname.lib gettextsrc.lib ..\lib\gettextlib.lib ..\intl\intl.lib $(libdir)\iconv.lib $(LDADD) -Fexgettext.exe\r
379 +       mt.exe -manifest xgettext.exe.manifest -outputresource:xgettext.exe;1           \r
380  \r
381  msgattrib.exe : $(msgattrib_OBJECTS)\r
382         $(CC) $(MFLAGS) $(DEBUGFLAGS) $(msgattrib_OBJECTS) gettextsrc.lib ..\lib\gettextlib.lib ..\intl\intl.lib $(libdir)\iconv.lib $(LDADD) -Femsgattrib.exe\r
383 +       mt.exe -manifest msgattrib.exe.manifest -outputresource:msgattrib.exe;1\r
384  \r
385  msgcat.exe : $(msgcat_OBJECTS)\r
386         $(CC) $(MFLAGS) $(DEBUGFLAGS) $(msgcat_OBJECTS) gettextsrc.lib ..\lib\gettextlib.lib ..\intl\intl.lib $(libdir)\iconv.lib $(LDADD) -Femsgcat.exe\r
387 +       mt.exe -manifest msgcat.exe.manifest -outputresource:msgcat.exe;1       \r
388  \r
389  msgcomm.exe : $(msgcomm_OBJECTS)\r
390         $(CC) $(MFLAGS) $(DEBUGFLAGS) $(msgcomm_OBJECTS) gettextsrc.lib ..\lib\gettextlib.lib ..\intl\intl.lib $(libdir)\iconv.lib $(LDADD) -Femsgcomm.exe\r
391 +       mt.exe -manifest msgcomm.exe.manifest -outputresource:msgcomm.exe;1     \r
392  \r
393  msgconv.exe : $(msgconv_OBJECTS)\r
394         $(CC) $(MFLAGS) $(DEBUGFLAGS) $(msgconv_OBJECTS) gettextsrc.lib ..\lib\gettextlib.lib ..\intl\intl.lib $(libdir)\iconv.lib $(LDADD) -Femsgconv.exe\r
395 +       mt.exe -manifest msgconv.exe.manifest -outputresource:msgconv.exe;1     \r
396  \r
397  msgen.exe : $(msgen_OBJECTS)\r
398         $(CC) $(MFLAGS) $(DEBUGFLAGS) $(msgen_OBJECTS) gettextsrc.lib ..\lib\gettextlib.lib ..\intl\intl.lib $(libdir)\iconv.lib $(LDADD) -Femsgen.exe\r
399 +       mt.exe -manifest msgen.exe.manifest -outputresource:msgen.exe;1 \r
400  \r
401  msgexec.exe : $(msgexec_OBJECTS)\r
402         $(CC) $(MFLAGS) $(DEBUGFLAGS) $(msgexec_OBJECTS) gettextsrc.lib ..\lib\gettextlib.lib ..\intl\intl.lib $(libdir)\iconv.lib $(LDADD) -Femsgexec.exe\r
403 +       mt.exe -manifest msgexec.exe.manifest -outputresource:msgexec.exe;1     \r
404  \r
405  msgfilter.exe : $(msgfilter_OBJECTS)\r
406         $(CC) $(MFLAGS) $(DEBUGFLAGS) $(msgfilter_OBJECTS) gettextsrc.lib ..\lib\gettextlib.lib ..\intl\intl.lib $(libdir)\iconv.lib $(LDADD) -Femsgfilter.exe\r
407 +       mt.exe -manifest msgfilter.exe.manifest -outputresource:msgfilter.exe;1 \r
408  \r
409  msggrep.exe : $(msggrep_OBJECTS)\r
410         $(CC) $(MFLAGS) $(DEBUGFLAGS) $(msggrep_OBJECTS) ..\libgrep\grep.lib gettextsrc.lib ..\lib\gettextlib.lib ..\intl\intl.lib $(libdir)\iconv.lib $(LDADD) -Femsggrep.exe\r
411 +       mt.exe -manifest msggrep.exe.manifest -outputresource:msggrep.exe;1     \r
412  \r
413  msginit.exe : $(msginit_OBJECTS)\r
414         $(CC) $(MFLAGS) $(DEBUGFLAGS) $(msginit_OBJECTS) ..\intl\localename.obj gettextsrc.lib ..\lib\gettextlib.lib ..\intl\intl.lib $(libdir)\iconv.lib $(LDADD) -Femsginit.exe\r
415 +       mt.exe -manifest msginit.exe.manifest -outputresource:msginit.exe;1     \r
416  \r
417  msguniq.exe : $(msguniq_OBJECTS)\r
418         $(CC) $(MFLAGS) $(DEBUGFLAGS) $(msguniq_OBJECTS) gettextsrc.lib ..\lib\gettextlib.lib ..\intl\intl.lib $(libdir)\iconv.lib $(LDADD) -Femsguniq.exe\r
419 +       mt.exe -manifest msguniq.exe.manifest -outputresource:msguniq.exe;1     \r
420  \r
421  recode-sr-latin.exe : $(recode_sr_latin_OBJECTS)\r
422         $(CC) $(MFLAGS) $(DEBUGFLAGS) $(recode_sr_latin_OBJECTS) ..\lib\gettextlib.lib ..\intl\intl.lib $(libdir)\iconv.lib $(LDADD) -Ferecode-sr-latin.exe\r
423 +       mt.exe -manifest recode-sr-latin.exe.manifest -outputresource:recode-sr-latin.exe;1\r
424  \r
425  # Compilation rules for gettextpo.lib objects, with $(PICFLAGS).\r
426  \r
427 diff -riwBu -Xex gettext-0.15\gettext-tools\src\msgattrib.c gettext-0.15-modified\gettext-tools\src\msgattrib.c\r
428 --- gettext-0.15\gettext-tools\src\msgattrib.c  Mon Apr 03 13:27:40 2006\r
429 +++ gettext-0.15-modified\gettext-tools\src\msgattrib.c Wed Oct 18 23:53:18 2006\r
430 @@ -147,7 +147,9 @@\r
431  \r
432    /* Set the text message domain.  */\r
433    bindtextdomain (PACKAGE, relocate (LOCALEDIR));\r
434 +#ifdef BISON_LOCALEDIR  \r
435    bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR));\r
436 +#endif\r
437    textdomain (PACKAGE);\r
438  \r
439    /* Ensure that write errors on stdout are detected.  */\r
440 diff -riwBu -Xex gettext-0.15\gettext-tools\src\msgcat.c gettext-0.15-modified\gettext-tools\src\msgcat.c\r
441 --- gettext-0.15\gettext-tools\src\msgcat.c     Mon Apr 03 13:27:40 2006\r
442 +++ gettext-0.15-modified\gettext-tools\src\msgcat.c    Wed Oct 18 23:53:18 2006\r
443 @@ -119,7 +119,9 @@\r
444  \r
445    /* Set the text message domain.  */\r
446    bindtextdomain (PACKAGE, relocate (LOCALEDIR));\r
447 +#ifdef BISON_LOCALEDIR  \r
448    bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR));\r
449 +#endif\r
450    textdomain (PACKAGE);\r
451  \r
452    /* Ensure that write errors on stdout are detected.  */\r
453 diff -riwBu -Xex gettext-0.15\gettext-tools\src\msgcmp.c gettext-0.15-modified\gettext-tools\src\msgcmp.c\r
454 --- gettext-0.15\gettext-tools\src\msgcmp.c     Mon Apr 03 13:27:40 2006\r
455 +++ gettext-0.15-modified\gettext-tools\src\msgcmp.c    Wed Oct 18 23:53:18 2006\r
456 @@ -90,7 +90,9 @@\r
457  \r
458    /* Set the text message domain.  */\r
459    bindtextdomain (PACKAGE, relocate (LOCALEDIR));\r
460 +#ifdef BISON_LOCALEDIR  \r
461    bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR));\r
462 +#endif\r
463    textdomain (PACKAGE);\r
464  \r
465    /* Ensure that write errors on stdout are detected.  */\r
466 diff -riwBu -Xex gettext-0.15\gettext-tools\src\msgcomm.c gettext-0.15-modified\gettext-tools\src\msgcomm.c\r
467 --- gettext-0.15\gettext-tools\src\msgcomm.c    Mon Apr 03 13:27:40 2006\r
468 +++ gettext-0.15-modified\gettext-tools\src\msgcomm.c   Wed Oct 18 23:53:18 2006\r
469 @@ -121,7 +121,9 @@\r
470  \r
471    /* Set the text message domain.  */\r
472    bindtextdomain (PACKAGE, relocate (LOCALEDIR));\r
473 +#ifdef BISON_LOCALEDIR  \r
474    bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR));\r
475 +#endif\r
476    textdomain (PACKAGE);\r
477  \r
478    /* Ensure that write errors on stdout are detected.  */\r
479 diff -riwBu -Xex gettext-0.15\gettext-tools\src\msgconv.c gettext-0.15-modified\gettext-tools\src\msgconv.c\r
480 --- gettext-0.15\gettext-tools\src\msgconv.c    Mon Apr 03 13:27:42 2006\r
481 +++ gettext-0.15-modified\gettext-tools\src\msgconv.c   Wed Oct 18 23:53:18 2006\r
482 @@ -111,7 +111,9 @@\r
483  \r
484    /* Set the text message domain.  */\r
485    bindtextdomain (PACKAGE, relocate (LOCALEDIR));\r
486 +#ifdef BISON_LOCALEDIR  \r
487    bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR));\r
488 +#endif\r
489    textdomain (PACKAGE);\r
490  \r
491    /* Ensure that write errors on stdout are detected.  */\r
492 diff -riwBu -Xex gettext-0.15\gettext-tools\src\msgen.c gettext-0.15-modified\gettext-tools\src\msgen.c\r
493 --- gettext-0.15\gettext-tools\src\msgen.c      Mon Apr 03 13:27:42 2006\r
494 +++ gettext-0.15-modified\gettext-tools\src\msgen.c     Wed Oct 18 23:53:18 2006\r
495 @@ -101,10 +100,11 @@\r
496    /* Set locale via LC_ALL.  */\r
497    setlocale (LC_ALL, "");\r
498  #endif\r
499 -\r
500    /* Set the text message domain.  */\r
501    bindtextdomain (PACKAGE, relocate (LOCALEDIR));\r
502 +#ifdef BISON_LOCALEDIR  \r
503    bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR));\r
504 +#endif\r
505    textdomain (PACKAGE);\r
506  \r
507    /* Ensure that write errors on stdout are detected.  */\r
508 diff -riwBu -Xex gettext-0.15\gettext-tools\src\msgexec.c gettext-0.15-modified\gettext-tools\src\msgexec.c\r
509 --- gettext-0.15\gettext-tools\src\msgexec.c    Tue May 02 14:28:34 2006\r
510 +++ gettext-0.15-modified\gettext-tools\src\msgexec.c   Wed Oct 18 23:53:18 2006\r
511 @@ -29,7 +29,10 @@\r
512  #include <stdlib.h>\r
513  #include <string.h>\r
514  #include <sys/types.h>\r
515 +\r
516 +#ifdef HAVE_UNISTD_H\r
517  #include <unistd.h>\r
518 +#endif\r
519  \r
520  #include "closeout.h"\r
521  #include "dir-list.h"\r
522 @@ -114,7 +117,9 @@\r
523  \r
524    /* Set the text message domain.  */\r
525    bindtextdomain (PACKAGE, relocate (LOCALEDIR));\r
526 +#ifdef BISON_LOCALEDIR  \r
527    bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR));\r
528 +#endif\r
529    textdomain (PACKAGE);\r
530  \r
531    /* Ensure that write errors on stdout are detected.  */\r
532 diff -riwBu -Xex gettext-0.15\gettext-tools\src\msgfilter.c gettext-0.15-modified\gettext-tools\src\msgfilter.c\r
533 --- gettext-0.15\gettext-tools\src\msgfilter.c  Mon May 22 14:15:32 2006\r
534 +++ gettext-0.15-modified\gettext-tools\src\msgfilter.c Wed Oct 18 23:53:18 2006\r
535 @@ -35,7 +35,10 @@\r
536  # include <sys/time.h>\r
537  #endif\r
538  \r
539 +#ifdef HAVE_UNISTD_H\r
540  #include <unistd.h>\r
541 +#endif\r
542 +\r
543  #if defined _MSC_VER || defined __MINGW32__\r
544  # include <io.h>\r
545  #endif\r
546 @@ -164,7 +167,9 @@\r
547  \r
548    /* Set the text message domain.  */\r
549    bindtextdomain (PACKAGE, relocate (LOCALEDIR));\r
550 +#ifdef BISON_LOCALEDIR  \r
551    bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR));\r
552 +#endif\r
553    textdomain (PACKAGE);\r
554  \r
555    /* Ensure that write errors on stdout are detected.  */\r
556 diff -riwBu -Xex gettext-0.15\gettext-tools\src\msgfmt.c gettext-0.15-modified\gettext-tools\src\msgfmt.c\r
557 --- gettext-0.15\gettext-tools\src\msgfmt.c     Tue May 02 14:28:34 2006\r
558 +++ gettext-0.15-modified\gettext-tools\src\msgfmt.c    Wed Oct 18 23:53:19 2006\r
559 @@ -28,6 +28,10 @@\r
560  #include <string.h>\r
561  #include <locale.h>\r
562  \r
563 +#ifdef _MSC_VER\r
564 +#define ENDIANNESS 0\r
565 +#endif\r
566 +\r
567  #include "closeout.h"\r
568  #include "dir-list.h"\r
569  #include "error.h"\r
570 @@ -217,7 +221,9 @@\r
571  \r
572    /* Set the text message domain.  */\r
573    bindtextdomain (PACKAGE, relocate (LOCALEDIR));\r
574 +#ifdef BISON_LOCALEDIR  \r
575    bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR));\r
576 +#endif\r
577    textdomain (PACKAGE);\r
578  \r
579    /* Ensure that write errors on stdout are detected.  */\r
580 diff -riwBu -Xex gettext-0.15\gettext-tools\src\msggrep.c gettext-0.15-modified\gettext-tools\src\msggrep.c\r
581 --- gettext-0.15\gettext-tools\src\msggrep.c    Mon Apr 24 13:17:08 2006\r
582 +++ gettext-0.15-modified\gettext-tools\src\msggrep.c   Wed Oct 18 23:53:19 2006\r
583 @@ -31,7 +31,10 @@\r
584  #include <stdlib.h>\r
585  #include <string.h>\r
586  \r
587 +#ifdef HAVE_UNISTD_H\r
588  #include <unistd.h>\r
589 +#endif\r
590 +\r
591  #if defined _MSC_VER || defined __MINGW32__\r
592  # include <io.h>\r
593  #endif\r
594 @@ -161,7 +164,9 @@\r
595  \r
596    /* Set the text message domain.  */\r
597    bindtextdomain (PACKAGE, relocate (LOCALEDIR));\r
598 +#ifdef BISON_LOCALEDIR  \r
599    bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR));\r
600 +#endif\r
601    textdomain (PACKAGE);\r
602  \r
603    /* Ensure that write errors on stdout are detected.  */\r
604 diff -riwBu -Xex gettext-0.15\gettext-tools\src\msginit.c gettext-0.15-modified\gettext-tools\src\msginit.c\r
605 --- gettext-0.15\gettext-tools\src\msginit.c    Fri Jun 30 16:34:40 2006\r
606 +++ gettext-0.15-modified\gettext-tools\src\msginit.c   Wed Oct 18 23:53:19 2006\r
607 @@ -37,7 +37,9 @@\r
608  # include <pwd.h>\r
609  #endif\r
610  \r
611 +#ifdef HAVE_UNISTD_H\r
612  #include <unistd.h>\r
613 +#endif\r
614  \r
615  #if HAVE_DIRENT_H\r
616  # include <dirent.h>\r
617 @@ -160,7 +162,9 @@\r
618  \r
619    /* Set the text message domain.  */\r
620    bindtextdomain (PACKAGE, relocate (LOCALEDIR));\r
621 +#ifdef BISON_LOCALEDIR  \r
622    bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR));\r
623 +#endif\r
624    textdomain (PACKAGE);\r
625  \r
626    /* Ensure that write errors on stdout are detected.  */\r
627 diff -riwBu -Xex gettext-0.15\gettext-tools\src\msgmerge.c gettext-0.15-modified\gettext-tools\src\msgmerge.c\r
628 --- gettext-0.15\gettext-tools\src\msgmerge.c   Mon Apr 03 13:27:42 2006\r
629 +++ gettext-0.15-modified\gettext-tools\src\msgmerge.c  Wed Oct 18 23:53:19 2006\r
630 @@ -170,7 +170,9 @@\r
631  \r
632    /* Set the text message domain.  */\r
633    bindtextdomain (PACKAGE, relocate (LOCALEDIR));\r
634 +#ifdef BISON_LOCALEDIR  \r
635    bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR));\r
636 +#endif\r
637    textdomain (PACKAGE);\r
638  \r
639    /* Ensure that write errors on stdout are detected.  */\r
640 diff -riwBu -Xex gettext-0.15\gettext-tools\src\msgunfmt.c gettext-0.15-modified\gettext-tools\src\msgunfmt.c\r
641 --- gettext-0.15\gettext-tools\src\msgunfmt.c   Mon Apr 03 13:27:42 2006\r
642 +++ gettext-0.15-modified\gettext-tools\src\msgunfmt.c  Wed Oct 18 23:53:19 2006\r
643 @@ -130,7 +130,9 @@\r
644  \r
645    /* Set the text message domain.  */\r
646    bindtextdomain (PACKAGE, relocate (LOCALEDIR));\r
647 +#ifdef BISON_LOCALEDIR  \r
648    bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR));\r
649 +#endif\r
650    textdomain (PACKAGE);\r
651  \r
652    /* Ensure that write errors on stdout are detected.  */\r
653 diff -riwBu -Xex gettext-0.15\gettext-tools\src\msguniq.c gettext-0.15-modified\gettext-tools\src\msguniq.c\r
654 --- gettext-0.15\gettext-tools\src\msguniq.c    Mon Apr 03 13:27:42 2006\r
655 +++ gettext-0.15-modified\gettext-tools\src\msguniq.c   Wed Oct 18 23:53:19 2006\r
656 @@ -114,7 +114,9 @@\r
657  \r
658    /* Set the text message domain.  */\r
659    bindtextdomain (PACKAGE, relocate (LOCALEDIR));\r
660 +#ifdef BISON_LOCALEDIR  \r
661    bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR));\r
662 +#endif\r
663    textdomain (PACKAGE);\r
664  \r
665    /* Ensure that write errors on stdout are detected.  */\r
666 diff -riwBu -Xex gettext-0.15\gettext-tools\src\write-mo.c gettext-0.15-modified\gettext-tools\src\write-mo.c\r
667 --- gettext-0.15\gettext-tools\src\write-mo.c   Thu Oct 06 13:08:06 2005\r
668 +++ gettext-0.15-modified\gettext-tools\src\write-mo.c  Sat Oct 14 01:02:50 2006\r
669 @@ -38,7 +38,12 @@\r
670  #include "gmo.h"\r
671  #include "hash-string.h"\r
672  \r
673 +#ifndef _MSC_VER\r
674  #include "byteswap.h"\r
675 +#else\r
676 +#include "byteswap_.h"\r
677 +#endif\r
678 +\r
679  #include "error.h"\r
680  #include "hash.h"\r
681  #include "message.h"\r
682 diff -riwBu -Xex gettext-0.15\gettext-tools\src\xgettext.c gettext-0.15-modified\gettext-tools\src\xgettext.c\r
683 --- gettext-0.15\gettext-tools\src\xgettext.c   Fri Jun 09 22:27:24 2006\r
684 +++ gettext-0.15-modified\gettext-tools\src\xgettext.c  Wed Oct 18 23:53:19 2006\r
685 @@ -293,7 +293,9 @@\r
686  \r
687    /* Set the text message domain.  */\r
688    bindtextdomain (PACKAGE, relocate (LOCALEDIR));\r
689 +#ifdef BISON_LOCALEDIR  \r
690    bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR));\r
691 +#endif\r
692    textdomain (PACKAGE);\r
693  \r
694    /* Ensure that write errors on stdout are detected.  */\r
695 diff -riwBu -Xex gettext-0.15\gettext-tools\windows\gettextlib.def gettext-0.15-modified\gettext-tools\windows\gettextlib.def\r
696 --- gettext-0.15\gettext-tools\windows\gettextlib.def   Tue Feb 08 13:26:08 2005\r
697 +++ gettext-0.15-modified\gettext-tools\windows\gettextlib.def  Wed Oct 18 22:18:21 2006\r
698 @@ -40,7 +40,6 @@\r
699  create_pipe_bidi\r
700  create_pipe_in\r
701  create_pipe_out\r
702 -delete_hash\r
703  error\r
704  error_at_line\r
705  error_one_per_line\r
706 @@ -49,7 +48,6 @@\r
707  execute_csharp_program\r
708  execute_java_class\r
709  find_backup_file_name\r
710 -find_entry\r
711  find_in_path\r
712  freesa\r
713  fstrcmp\r
714 @@ -61,9 +59,6 @@\r
715  gnu_basename\r
716  gnu_mbswidth\r
717  gnu_stpncpy\r
718 -init_hash\r
719 -insert_entry\r
720 -iterate_table\r
721  locale_charset\r
722  mallocsa\r
723  maybe_print_progname\r
724 @@ -92,8 +87,6 @@\r
725  shell_quote_copy\r
726  shell_quote_length\r
727  stpcpy\r
728 -strcasecmp\r
729 -strncasecmp\r
730  u8_possible_linebreaks\r
731  u8_width_linebreaks\r
732  uc_width\r
733 @@ -110,3 +103,19 @@\r
734  xrealloc\r
735  xsetenv\r
736  xstrdup\r
737 +cleanup_temp_dir\r
738 +unregister_temp_subdir\r
739 +unregister_temp_file\r
740 +register_temp_subdir\r
741 +register_temp_file\r
742 +create_temp_dir\r
743 +hash_destroy\r
744 +hash_iterate\r
745 +hash_init\r
746 +proper_name\r
747 +proper_name_utf8\r
748 +hash_insert_entry\r
749 +hash_find_entry\r
750 +hash_set_value\r
751 +hash_iterate_modify\r
752 +iconv_string\r
753 diff -riwBu -Xex gettext-0.15\gettext-tools\windows\gettextsrc.def gettext-0.15-modified\gettext-tools\windows\gettextsrc.def\r
754 --- gettext-0.15\gettext-tools\windows\gettextsrc.def   Sat Feb 12 21:07:36 2005\r
755 +++ gettext-0.15-modified\gettext-tools\windows\gettextsrc.def  Wed Oct 18 22:19:25 2006\r
756 @@ -65,7 +65,6 @@\r
757  dir_list_nth\r
758  dir_list_restore\r
759  dir_list_save_reset\r
760 -extract_plural_expression\r
761  get_sysdep_c_format_directives\r
762  iconv_message_list\r
763  iconv_msgdomain_list\r
764 @@ -92,7 +91,6 @@\r
765  message_list_list_append\r
766  message_list_list_append_list\r
767  message_list_list_search\r
768 -message_list_list_search_fuzzy\r
769  message_list_prepend\r
770  message_list_remove_if_not\r
771  message_list_search\r
772 @@ -120,7 +118,6 @@\r
773  msgdomain_list_sort_by_msgid\r
774  msgdomain_list_sublist\r
775  open_po_file\r
776 -parse_plural_expression\r
777  po_callback_comment\r
778  po_callback_comment_filepos\r
779  po_callback_domain\r
780 @@ -157,3 +154,16 @@\r
781  string_list_init\r
782  string_list_join\r
783  string_list_member\r
784 +check_message_list\r
785 +parse_plural_expression\r
786 +plural_eval\r
787 +po_xerror\r
788 +extract_plural_expression\r
789 +message_fuzzy_index_alloc\r
790 +fuzzy_search_goal_function\r
791 +message_list_list_free\r
792 +po_charset_character_iterator\r
793 +get_python_format_unnamed_arg_count\r
794 +check_message\r
795 +textmode_xerror\r
796 +textmode_xerror2\r