poll(2) emulation doesn't work well on a file descriptor

2006-08-11 Thread Daiki Ueno
i].events & POLLHUP && + recv (pfd[i].fd, data, 64, MSG_PEEK) == -1) { if (errno == ESHUTDOWN || errno == ECONNRESET || errno == ECONNABORTED || errno == ENETRESET) Regards, -- Daiki Ueno

Re: poll(2) emulation doesn't work well on a file descriptor

2006-09-14 Thread Daiki Ueno
>>>>> In <[EMAIL PROTECTED]> >>>>> Paolo Bonzini <[EMAIL PROTECTED]> wrote: > Bruno Haible wrote: > > Daiki Ueno wrote: > > > >> When I tried a tiny program which uses gnulib's poll(2) emulation on > >> MacOS X 1

Re: 'inline' changes pushed

2012-12-04 Thread Daiki Ueno
vel/gettext/gettext-tools/gnulib-lib/gl_list.h:557: multiple definition of `gl_list_nx_create_empty' .libs/gl_list.o:/home/ueno/devel/gettext/gettext-tools/gnulib-lib/gl_list.h:557: first defined here ... Can it be fixed by caller side? Footnotes: [1] http://gcc.gnu.org/gcc-4.3/porting_to.html Regards, -- Daiki Ueno

Re: [bug-gettext] [PATCH] m4: use AC_PROG_MKDIR_P, not the deprecated AM_PROG_MKDIR_P

2012-12-04 Thread Daiki Ueno
t is good to update gnulib as well? (I still don't fully understand the relationship between gnulib and gettext, so perhaps I'm missing the point, but gettext-tools actually seems to pick gnulib's {po,intl}.m4 through bison-i18n.) Regards, -- Daiki Ueno

Re: [bug-gettext] [PATCH] m4: use AC_PROG_MKDIR_P, not the deprecated AM_PROG_MKDIR_P

2012-12-06 Thread Daiki Ueno
lib/ref-del.sin -> gettext-runtime/intl/ref-del.sin (*) lib/relocatable.h -> gettext-runtime/intl/relocatable.h (*) lib/relocatable.c -> gettext-runtime/intl/relocatable.c (*) lib/vasnprintf.c -> gettext-runtime/intl/vasnprintf.c (*) lib/xsize.h -> gettext-runtime/intl/xsize.h (*) Regards, -- Daiki Ueno

Re: [bug-gettext] gettext-tools test failures on Darwin

2012-12-20 Thread Daiki Ueno
Daiki Ueno writes: > After the following change (in gnulib), locale_charset() returns "ASCII" > on Mac OS X, even if thread's locale is set to "de_DE.UTF-8", say. So > the solution would be either to make sure MB_CUR_MAX > 1 somehow in the > test, or to

Re: [bug-gettext] gnulib configure.ac and autopoint?

2013-01-06 Thread Daiki Ueno
, I'm puzzled that this problem was discovered just now. > Isn't there a similar problem with autopoint 0.18.1? > > Anyway, here's the patch I installed into gnulib. Installed the following fix into gettext as well. >From a071c8a3cdff4f6487390ceeb720cc9ae66e1474 Mon Sep 17 00:

Re: [bug-gettext] gettext 0.18.2 fails to compile without optimisations

2013-01-16 Thread Daiki Ueno
ar xf gettext-0.18.2.tar.gz $ cd getteext-0.18.2 $ patch -p1 < patch $ pushd gettext-runtime/libasprintf $ autoreconf -f $ popd $ CFLAGS= ./configure && make I'm not 100% sure if this is the right fix, so Cc'ed bug-gnulib. Footnotes: [1] https://savannah.gnu.org/bugs/?37981 Regard

Re: [bug-gettext] gettext 0.18.2 fails to compile without optimisations

2013-01-17 Thread Daiki Ueno
Paul Eggert writes: > On 01/16/13 01:08, Daiki Ueno wrote: >> I'm not 100% sure if this is the right fix, so Cc'ed bug-gnulib. > > This patch looks good to me. Might there be other files > with the same problem? Maybe gettext should be changed to > use gnulib-too

sigaction test failure on FreeBSD 9.1 when pthread is used

2013-01-17 Thread Daiki Ueno
failed Abort trap (core dumped) FAIL: test-sigaction It seems -fopenmp flag causes the error. It can also be reproduced without openmp, but with CFLAGS="-O2 -pthread". Regards, -- Daiki Ueno

Re: sigaction test failure on FreeBSD 9.1 when pthread is used

2013-01-20 Thread Daiki Ueno
Paul Eggert writes: > On 01/17/13 23:04, Daiki Ueno wrote: >> It seems -fopenmp flag causes the error. It can also be reproduced >> without openmp, but with CFLAGS="-O2 -pthread". > > I can't reproduce it with Fedora 17, but I guess that's not > too

Re: sigaction test failure on FreeBSD 9.1 when pthread is used

2013-01-29 Thread Daiki Ueno
ra build log[1], FreeBSD 8.x does not seem to have that behavior. Perhaps it might be a bug in the latest FreeBSD kernel. Footnotes: [1] http://hydra.nixos.org/build/3910833/nixlog/1 Regards, -- Daiki Ueno

[PATCH] wctype-h: fix rpl_towupper/rpl_towlower link error on mingw

2013-03-27 Thread Daiki Ueno
n" error. I'm attaching a patch. Regards, -- Daiki Ueno >From e23bbce242682524d7b52a8637c92482d9a8c2fd Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Wed, 27 Mar 2013 17:16:46 +0900 Subject: [PATCH] wctype-h: fix gettext link error on mingw Reported by Josue Andrade Gomes and Takay

Re: sigaction test failure on FreeBSD 9.1 when pthread is used

2013-04-25 Thread Daiki Ueno
Ed Maste writes: > Tested on 8.4-PRERELEASE, 9.1-STABLE (the 9.x branch after 9.1 > released), and 10.0-CURRENT, all returned 0. Perhaps Daiki Ueno can > test in the environment that originally demonstrated the problem. I can still reproduce this on 9.1-RELEASE. Perhaps you ar

Re: [PATCH] qacl: new module, broken out from the acl module

2013-04-30 Thread Daiki Ueno
4 > --- a/lib/copy-acl.c > +++ b/lib/copy-acl.c > @@ -21,8 +21,7 @@ > > #include "acl.h" > > -#include "acl-internal.h" > - > +#include "error.h" Seems #include is also needed (same for set-acl.c). Regards, -- Daiki Ueno

Re: bug#14253: Testsuite failure in gnulib-tests: test programs cannot be built

2013-05-01 Thread Daiki Ueno
always change it later if Daiki or Bruno prefers that. FWIW, the change looks reasonable to me. Given that modules/gettext adds AM_GNU_GETTEXT([external]) to configure.ac, the AM_CPPFLAGS setting seems to be nothing more than example. Regards, -- Daiki Ueno

[PATCH] lock: work around pthread recursive mutexes bug in Mac OS X 10.6

2013-05-10 Thread Daiki Ueno
st the compiled binary on 10.6. Regards, -- Daiki Ueno >From 19685cf6de36e6f09423edc059d7ba24c8b4e45a Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Sat, 11 May 2013 10:40:55 +0900 Subject: [PATCH] lock: work around pthread recursive mutexes bug in Mac OS X 10.6 * m4/lock.m4: Don't defi

Re: [PATCH] lock: work around pthread recursive mutexes bug in Mac OS X 10.6

2013-05-10 Thread Daiki Ueno
Daiki Ueno writes: > Patch attached. Sorry, wrong patch. Please check the attached one instead. I've confirmed that HAVE_PTHREAD_MUTEX_RECURSIVE is defined by default on 10.8, but not with CFLAGS=-mmacosx-version-min=10.6. Regards, -- Daiki Ue

Re: [PATCH] tests: don't assume getdtablesize () <= 10000000

2013-06-10 Thread Daiki Ueno
(_SC_OPEN_MAX) == 256 * OPEN_MAX == 10240 If I replace getdtablesize () with OPEN_MAX in the above call, the test passes, while it still fails with OPEN_MAX - 1. Regards, -- Daiki Ueno

Re: [PATCH] tests: don't assume getdtablesize () <= 10000000

2013-06-11 Thread Daiki Ueno
Paul Eggert writes: > Thanks, I pushed the following to try to fix that. > Does it work for you now? Yes, all those 3 tests pass now. Thanks for the quick fix. Regards, -- Daiki Ueno

[PATCH] test-open: avoid compilation error with -D_FORTIFY_SOURCE=2

2013-06-20 Thread Daiki Ueno
tion call with a yet undetermined callee open (const char *__path, int __oflag, ...) ^ It seems that open cannot be directly passed to test_open as a function pointer, since it is marked as always_inline. I'm attaching a patch. Regards, -- Daiki Ueno >From f0ab4954d777a041c88964ce667a9

update from gettext 0.18.3

2013-07-07 Thread Daiki Ueno
0:00 2001 From: Daiki Ueno Date: Mon, 8 Jul 2013 09:39:05 +0900 Subject: [PATCH] gettext: Update to version 0.18.3. * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3. In particular, require AC_PROG_SED to allow user to specify custom sed command when generating en@quot PO file. --- ChangeLog |

[PATCH] announce-gen: avoid failure when Digest::SHA is installed

2013-07-09 Thread Daiki Ueno
t;new->addfile(*IN)->hexdigest : Digest::SHA1->new->addfile(*IN)->hexdigest); Here, Digest::SHA1 package may be undefined. I'm attaching a patch. As I'm new to Perl, comments (and a better fix) would be appreciated :) >From 8726f48a1a263b528040f19a3323e2c558dba492

Re: update from gettext 0.18.3

2013-07-20 Thread Daiki Ueno
ext-related old patch, any chance of this getting committed? 2012-12-20 Daiki Ueno localecharset: make locale_charset thread-safe on Mac OS X * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L instead of MB_CUR_MAX. http://lists.gnu.org/archive/html/bug-gn

[PATCH] gettext: update to version 0.18.3.1

2013-08-24 Thread Daiki Ueno
@@ +2013-08-24 Daiki Ueno + + * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse + of AC_CHECK_DECLS. + 2013-08-23 Paul Eggert selinux-at: omit unnecessary include diff --git a/m4/intl.m4 b/m4/intl.m4 index 959bd04..dffcd88 100644 --- a/m4/intl.m4 +++ b/m4

Re: portability of fopen and 'e' (O_CLOEXEC) flag

2020-05-25 Thread Daiki Ueno
1 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Tue, 26 May 2020 07:56:13 +0200 Subject: [PATCH] read-file: make use of fopen-gnu * lib/read-file.c (read_file): Pass an 'e' flag to fopen. (read_binary_file): Likewise. * modules/read-file (Depends-on): Add fopen-gnu. --- ChangeLog

[PATCH] read-file: add variants that clear internal memory

2020-05-26 Thread Daiki Ueno
avior enabled by default, but I worry that it may cause any performance drawback. Regards, -- Daiki Ueno >From d2fc964fa1dd87f5970f28c22349fb6983ff379e Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Tue, 26 May 2020 10:22:37 +0200 Subject: [PATCH] read-file: add variants that clear internal memor

Re: [PATCH] read-file: add variants that clear internal memory

2020-05-26 Thread Daiki Ueno
ching a patch along these lines. Regards, -- Daiki Ueno >From 5a40a392b3b551cf92d4be022b4efd900f339e39 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Tue, 26 May 2020 10:22:37 +0200 Subject: [PATCH] read-file: add flags to modify reading behavior * lib/read-file.h (RF_BINARY, RF_SENSITI

Re: [PATCH] read-file: add variants that clear internal memory

2020-05-26 Thread Daiki Ueno
t's do it. > - The NEWS file needs an entry. Indeed, I missed the last paragraph of your suggestion in the previous mail; sorry about that. Here are the two separate commits for this. >From 60608590e2b106708dd74fd31331567af5166d2e Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Wed, 27

Re: [PATCH] read-file: add variants that clear internal memory

2020-05-27 Thread Daiki Ueno
has been fixed and pushed. Thank you for the review! Regards, -- Daiki Ueno

Re: portability of fopen and 'e' (O_CLOEXEC) flag

2020-05-28 Thread Daiki Ueno
files (OCSP response): https://gitlab.com/gnutls/gnutls/-/jobs/569815031 It seems that the fopen module ignores a 'b' flag. The attached patch fixes the failures. Regards, -- Daiki Ueno >From 17fbb2560a05e3006125f8793c8e814ef5baa847 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date:

Re: portability of fopen and 'e' (O_CLOEXEC) flag

2020-05-28 Thread Daiki Ueno
Daiki Ueno writes: > Bruno Haible writes: > >>> Here are proposed patches for other modules. Does this look right? >> >> There were no objections. I pushed the changes. > > Thank you for this. I have rebased GnuTLS on top of it, but noticed a > strang

Re: portability of fopen and 'e' (O_CLOEXEC) flag

2020-05-28 Thread Daiki Ueno
your patch is perfect. Thank you for the review; fixed and pushed. Afterwards, I realized a compilation error in the test code on FreeBSD, so I've added the follow-up patch attached. Regards, -- Daiki Ueno >From 9326739489050009e3b8834838abc02203c592e5 Mon Sep 17 00:00:00 2001 From: D

Re: [PATCH] read-file: add variants that clear internal memory

2020-05-28 Thread Daiki Ueno
VE is set. I am attaching a patch for this. >From 9165e495461db91b8abc42661fc543784d26d0d6 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Fri, 29 May 2020 05:45:40 +0200 Subject: [PATCH] read-file: disable buffering if RF_SENSITIVE is set * lib/read-file.c (read_file): Call setvbuf if RF_SENSITIVE.

Re: [PATCH] gettimeofday: do not use LoadLibrary when built for Windows Store apps

2020-05-28 Thread Daiki Ueno
meByHandleW'? 259 | || (GetFinalPathNameByHandleFunc != NULL | ^~~~ | GetFinalPathNameByHandleW Regards, -- Daiki Ueno

Re: [PATCH] read-file: add variants that clear internal memory

2020-05-29 Thread Daiki Ueno
ks, therefore it's OK. > > Also, in the specification of fread_file, I would add a note. Maybe like > this? Thank you, amended the documentation and pushed. Regards, -- Daiki Ueno

Re: parse-datetime: Fix compilation error with bison 3.7

2020-09-12 Thread Daiki Ueno
to make target 'parse-datetime-gen.h', needed by 'all'. Stop. make[2]: *** Waiting for unfinished jobs YACC parse-datetime.c make[2]: Leaving directory '/tmp/gnutls/build/src/gl' make[1]: *** [Makefile:1761: all-recursive] Error 1 The a

Re: parse-datetime: Fix compilation error with bison 3.7

2020-09-14 Thread Daiki Ueno
> > 2020-09-13 Bruno Haible > > parse-datetime: Make the build rule work with parallel 'make'. > Reported by Daiki Ueno in > <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00036.html>. > * modules/parse-datetime (Makefile

"GNULIB_STRERROR" redefined in single-configure package

2020-10-25 Thread Daiki Ueno
"GNULIB_STRERROR" redefined [-Werror] 412 | #define GNULIB_STRERROR 1 | conftest.c:305: note: this is the location of the previous definition 305 | #define GNULIB_STRERROR IN_GNUTLS_GNULIB_TESTS | cc1: all warnings being treated as errors Could anyone shed some light on this? Regards, -- Daiki Ueno

Re: "GNULIB_STRERROR" redefined in single-configure package

2020-10-26 Thread Daiki Ueno
worked: https://gitlab.com/gnutls/gnutls/-/merge_requests/1345/diffs?commit_id=1fc78a5a3e6646e4082be7ec1c4d60b9d40213d0 Regards, -- Daiki Ueno

[PATCH] read-file: remove dead assignment

2020-11-21 Thread Daiki Ueno
>From 69b8df2c5b011b09c8d03c13566356a906bd89dc Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Sat, 21 Nov 2020 17:32:58 +0100 Subject: [PATCH] read-file: remove dead assignment * lib/read-file.c (fread_file): Remove dead assignment when RF_SENSITIVE is set, flagged by clang-analy

relicense 'reallocarray' to LGPLv2+?

2021-02-21 Thread Daiki Ueno
efore I would like to ask your permission to change it to "LGPLv2+". Would you agree with that? Footnotes: [1] https://lists.gnu.org/archive/html/bug-gnulib/2017-08/msg00057.html [2] https://gitlab.com/gnutls/gnutls/-/issues/1179 Regards, -- Daiki Ueno

gl_YEAR2038_EARLY is called too late

2022-09-25 Thread Daiki Ueno
oesn't fully resolve the issue with DTLS tests as mentioned, and I suspect there might be some other confusions. Any suggestions would be appreciated. Footnotes: [1] https://gitlab.com/dueno/gnutls/-/jobs/2613997489 Regards, -- Daiki Ueno >From eac9e4fe9fd9e432bce8765059ae29559258344f Mon

Re: gl_YEAR2038_EARLY is called too late

2022-09-25 Thread Daiki Ueno
Paul Eggert writes: > On 9/25/22 21:56, Daiki Ueno wrote: >> I guess a simple solution would be to swap the order of >> gl_YEAR2038_EARLY and AC_SYS_LARGEFILE in modules/largefile, as with the >> attached patch. > > Thanks, I installed that. > >> This doesn

Re: license of lib/uniwidth/width.c

2017-06-12 Thread Daiki Ueno
well? Sure, I agree with that change. Regards, -- Daiki Ueno

Re: [bug-libunistring] [PATCH] unicase: Add missing prefix/suffix-context modules

2018-04-08 Thread Daiki Ueno
t see such changes since 0.9.8. Could you elaborate why this change is appropriate, for future improvements of the release process? Regards, -- Daiki Ueno

Re: [bug-libunistring] [PATCH] unicase: Add missing prefix/suffix-context modules

2018-04-08 Thread Daiki Ueno
(0.9.10 is not released)? I was confused because you urged a new release for this: https://lists.gnu.org/archive/html/bug-libunistring/2018-04/msg3.html And if it is the case, my answer again would be "not this time", because the fix in the Gnulib git should be sufficient. Regards, -- Daiki Ueno

Re: bootstrap/autogen.sh and git submodules

2019-04-02 Thread Daiki Ueno
of the gettext, which is somehow guaranteed to compile. Therefore, if the new script provides a similar feature, without adding a manual process to our current practice, I wouldn't oppose. Otherwise it seems like a bit of a step back to me. Regards, -- Daiki Ueno

javacomp: conftest.java is deleted before compiling

2013-09-20 Thread Daiki Ueno
quot;D" mode on Windows, which implies the file will be deleted on close (fwriteerror_temp here). Thus, after calling write_temp_file, the file will be deleted immediately. Maybe we should use plain fopen/fwriteerror here? Regards, -- Daiki Ueno

Re: javacomp: conftest.java is deleted before compiling

2013-09-22 Thread Daiki Ueno
, I found cleanup_temp_dir is missing in a few places in javacomp.c. See the second patch for that. Regards, -- Daiki Ueno >From 54c6e156989df415c53d44fb516d3b545b2ed80a Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Sun, 22 Sep 2013 18:50:43 +0900 Subject: [PATCH 1/2] javacomp: make co

[PATCH] gettext: update macros to version 0.19

2014-06-11 Thread Daiki Ueno
gettext-0.19 (and 0.19.1) has been released a while ago, this is the update of the M4 macros. There's no difference between 0.19 and 0.19.1. >From e3fd44d010a9eb0afb52d091268c80e8ac61e306 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Wed, 11 Jun 2014 18:06:11 +0900 Subject: [PATCH]

Re: Fix libunistring in MS-Windows locales

2014-07-03 Thread Daiki Ueno
nt than as part of gnulib. Regards, -- Daiki Ueno

Re: [PATCH] gettext: update macros to version 0.19

2014-07-09 Thread Daiki Ueno
ement happens because of some Gnulib tests depending on the gettext module. How about removing the dependencies? >From c6e5277472b17de2a98e5e5c903b36efab7a039b Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Thu, 10 Jul 2014 07:24:04 +0900 Subject: [PATCH] tests: remove dependency on gettex

Re: [PATCH] gettext: update macros to version 0.19

2014-07-09 Thread Daiki Ueno
ch as a proof of concept. >From 875d647f9bb0ffc8f8b507083cff737c56f3a9e8 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Thu, 10 Jul 2014 13:35:57 +0900 Subject: [PATCH] gettext: move libintl check to gettext-h The gettext module copies the entire gettext infrastructure, including po/ directory handling, etc

Re: [PATCH] gettext: update macros to version 0.19

2014-07-11 Thread Daiki Ueno
ts.gnu.org/archive/html/bug-gettext/2014-06/msg00021.html -- Daiki Ueno

Re: [PATCH] gettext: update macros to version 0.19

2014-07-11 Thread Daiki Ueno
Bernhard Voelker writes: > On 07/11/2014 03:13 PM, Daiki Ueno wrote: >> Could you provide an example of the build failures with 0.19.1? > > https://build.opensuse.org/package/live_build_log/Base:System/coreutils/openSUSE_Factory/i586 > > [ 172s] *** Error in `/usr/b

Re: [PATCH] gettext: update macros to version 0.19

2014-07-13 Thread Daiki Ueno
mpat with 2.68 >> else >> rely on autopoint avoiding m4 include errors >> This autopoint code though relies on autoconf >= 2.69 >> fi I've pushed a fix for this anyway: http://git.savannah.gnu.org/cgit/gettext.git/commit/?h=maint&id=e1bd11a1 Regards, -- Daiki Ueno

Re: [PATCH] announce-gen: avoid failure when Digest::SHA is installed

2014-07-14 Thread Daiki Ueno
Hi, Daiki Ueno writes: > The 'announce-gen' script fails when Digest::SHA (not Digest::SHA1) is > installed: > > Can't locate object method "new" via package "Digest::SHA1" (perhaps you > forgot to load "Digest::SHA1"?) at

Re: [PATCH] gettext: update macros to version 0.19

2014-07-14 Thread Daiki Ueno
AIL: autopoint-2 > FAIL: autopoint-3 Yes, the patch was incomplete and here is the amendment: http://git.savannah.gnu.org/cgit/gettext.git/commit/?id=db326c5a I forgot that AM_GNU_GETTEXT{,_VERSION} cannot be captured by autoconf trace. 0.19.2 released today shouldn't have the issue. Regards, -- Daiki Ueno

fallback _GL_ATTRIBUTE_* definitions in intl.m4

2014-07-16 Thread Daiki Ueno
ter ideas? Regards, -- Daiki Ueno

Re: Fix libunistring in MS-Windows locales

2014-07-16 Thread Daiki Ueno
his change? I don't even know if Guile is still using the packaged libunistring. By the way, isn't there a minor race in gl_locale_name_thread, since it depends on a global variable found_lcid? Regards, -- Daiki Ueno

Re: Fix libunistring in MS-Windows locales

2014-07-16 Thread Daiki Ueno
ulib has glthread/tls but I'm not sure if it is worth adding another dependency to localename.c (which is also shared with libintl...) for this specific issue. Maybe just lock around the use? Regards, -- Daiki Ueno

Re: Fix libunistring in MS-Windows locales

2014-07-17 Thread Daiki Ueno
(< 3.3?), or might require extra compiler options or runtime dependency: http://sourceforge.net/p/mingw/bugs/1333/ http://sourceforge.net/p/mingw-w64/mailman/message/31213279/ I could be wrong and perhaps it might not be a problem with the recent MinGW releases. Regards, -- Daiki Ueno

Re: Fix libunistring in MS-Windows locales

2014-07-18 Thread Daiki Ueno
Daiki Ueno writes: > I could be wrong and perhaps it might not be a problem with the recent > MinGW releases. FWIW I just tried myself (on wine, though) and it seems to work with: - GCC 4.8.3 (Fedora mingw64-gcc package, cross compiling) - GCC 4.7.2 (mingw-w32-bin_i686-mingw_20111219

Re: Fix libunistring in MS-Windows locales

2014-07-18 Thread Daiki Ueno
t's best to use them. Yes, could you create a patch in that direction? By the way, though a minor nitpicking, the indentation in gl_locale_name_thread still doesn't look correct (there is a variable declaration in the middle of block). Regards, -- Daiki Ueno

Re: Missing symbols when compiling gettext on OSX 10.8

2014-08-05 Thread Daiki Ueno
to gnulib? But the problem > should be fixed in the upstream version anyway. As far as I checked, gettext uses build-aux/install-reloc from Gnulib as it is, and the patch still applies to the Gnulib master. Regards, -- Daiki Ueno

Re: Fix libunistring in MS-Windows locales

2014-08-06 Thread Daiki Ueno
on? > > Will do. Here is a simple patch for this. Is it OK for you? >From a9576350604e97fc3c3fa16778e6e3d10094f97a Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Thu, 7 Aug 2014 08:46:52 +0900 Subject: [PATCH] localename: make gl_locale_name_thread really thread-safe on Windows * lib/

Re: Missing symbols when compiling gettext on OSX 10.8

2014-08-07 Thread Daiki Ueno
Paul Eggert writes: > Daiki Ueno wrote: >> As far as I checked, gettext uses build-aux/install-reloc from Gnulib as >> it is, and the patch still applies to the Gnulib master. For the record, porting it to Gnulib was completed in 2007: http://git.sv.gnu.org/cgit/gettext.git/comm

Re: [bug-libunistring] [PATCH v4] unistr: New modules for backward iteration in string.

2014-09-19 Thread Daiki Ueno
how the gnulib option for that was supposed to work. Are you going to add "unsafe" version later, or is it not useful at all? Thanks, -- Daiki Ueno

Re: [bug-libunistring] [PATCH v4] unistr: New modules for backward iteration in string.

2014-09-27 Thread Daiki Ueno
Ben Pfaff writes: >>> Are you going to add "unsafe" version later, or is it not useful at all? >> >> I do not have a use myself for unsafe versions, but I will add them if >> you think they are a good idea. Let me know. > > What is your opinion on this issue? Oh, sorry, it wasn't my intention t

mbrtowc test fails on Solaris 11

2014-10-01 Thread Daiki Ueno
input + 2, 7, &state); ASSERT (ret == 1); However, "\271\201" is a valid GB18030 sequence which encodes U+7B92. Maybe it should expect ret == 2? Footnotes: [1] http://docs.oracle.com/cd/E36784_01/html/E36874/mbrtowc-3c.html Regards, -- Daiki Ueno

Re: GNU gettext 0.18.3.1 fails with undefined _Bool on Solaris

2014-10-01 Thread Daiki Ueno
ls. Thanks for tracking it down. I've applied the patch and confirmed it effectively fixes the problem. Regards, -- Daiki ueno

Re: mbrtowc test fails on Solaris 11

2014-10-02 Thread Daiki Ueno
Daiki Ueno writes: > The latter case checks if the return value of mbrtowc, when scanning a > string starting with "\271\201", under the zh_CN.GB18030 locale. > > char input[] = "B\250\271\201\060\211\070er"; > memset (&state, '\0', sizeof (m

Re: [bug #43404] gl_locale_name_default() thread issues on OS X

2014-10-12 Thread Daiki Ueno
/html/bug-gettext/2013-11/msg00020.html though it is a different (multi-threaded consumer) case. Thanks, -- Daiki Ueno

Re: [bug #43404] gl_locale_name_default() thread issues on OS X

2014-10-13 Thread Daiki Ueno
yright assignment from the original author (Cc'ed). >From d8e9c96ef0c1e1c1c410cfbaec547c2e3d442dbe Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Tue, 14 Oct 2014 12:47:06 +0900 Subject: [PATCH] localename: Avoid implicit thread creation in CoreFoundation Problem reported by Peter Eisentr

Re: [bug #43404] gl_locale_name_default() thread issues on OS X

2014-10-14 Thread Daiki Ueno
gt; the forked version, as this isn't a function that would > be in a hot path. I agree, since this function is mainly called from libintl_setlocale, which is called at very early stage in typical programs, and probably we can assume that there is only one thread at that point. Regards, -- Daiki Ueno

Re: libiconv detection failure

2014-10-20 Thread Daiki Ueno
f the iconv function works properly, maybe a workaround would be to use the fixed prototype of iconv (as attached)? I'm still not able to reproduce the original error on my MinGW environment, though. Regards, -- Daiki Ueno >From 39e7957f1f724ae39524a82c230441df2557686c Mon Sep 17 00:00:00

Re: libiconv detection failure

2014-10-20 Thread Daiki Ueno
Daiki Ueno writes: > Given that the intention of the above test is to check if the iconv > function works properly, maybe a workaround would be to use the fixed > prototype of iconv (as attached)? Sorry, that was obviously wrong. The other idea is to suppress the error with a prag

Re: libiconv detection failure

2014-10-21 Thread Daiki Ueno
r idea is to suppress the >> error with a pragma, but I guess it would be better to actually >> check the prototype in AM_ICONV_LINK. > > What about using m4_foreach, running the link tests with and without > `const'? Thanks for the tip. The attached p

Re: libiconv detection failure

2014-10-21 Thread Daiki Ueno
before/after the change, using test packages: Before: http://du-a.org/~ueno/junk/test-iconv-0.tar.gz After: http://du-a.org/~ueno/junk/test-iconv-1.tar.gz Thanks, -- Daiki Ueno >From 46969a8560460084f6770f3c21025f0faac33f9f Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Tue, 21 O

Re: libiconv detection failure

2014-10-22 Thread Daiki Ueno
#x27;ve tested it on MSYS after manually adding 'const' to the iconv declaration in /usr/local/include/iconv.h, and it seems to be detected. Here is a new test package: http://du-a.org/~ueno/junk/test-iconv-2.tar.gz Thanks, -- Daiki Ueno >From 621cb2d9483053aa33cfeb1c6c6c20316aeac

[PATCH v2 00/10] Update libunistring-related modules to Unicode 7.0.0

2014-10-23 Thread Daiki Ueno
on is also available: ftp://alpha.gnu.org/gnu/libunistring/libunistring-0.9.5-alpha3.tar.xz I'd really appreciate if someone could go through the patches and find any mistakes before committing. Thanks in advance. Daiki Ueno (10): gen-uni-tables: Minor style fixes gen-uni-tables: Ch

[PATCH v2 01/10] gen-uni-tables: Minor style fixes

2014-10-23 Thread Daiki Ueno
* lib/gen-uni-tables.c: Escape newlines in the Emacs file local variables specification. (is_outdigit): Comment out the unused function. --- lib/gen-uni-tables.c | 43 ++- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/lib/gen-uni-tables.c b

[PATCH v2 04/10] uniwbrk: Ignore Extended/Format at the beginning of the line

2014-10-23 Thread Daiki Ueno
* lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format characters if the previous character property is one of WBP_NEWLINE, WBP_CR, and WBP_LF. --- lib/uniwbrk/u-wordbreaks.h | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/uniwbrk/u-wordbreaks.h b/lib/uniwbr

[PATCH v2 09/10] Update to Unicode 6.3.0

2014-10-23 Thread Daiki Ueno
* tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL. * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values. * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c. Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b. *

[PATCH v2 06/10] uniname: Make codepoint transformation more flexible

2014-10-23 Thread Daiki Ueno
The uniname module tries to reduce memory usage by grouping Unicode codepoints so that each codepoint fit into a 16-bit integer (4-bit tag plus 12-bit index). However, this transformation cannot represent all the characters in Unicode 7.0, where > 16 groups are needed. The attached patch tries to

[PATCH v2 05/10] uniwbrk/u32-wordbreaks-tests: Test using WordBreakTest.txt from UCD

2014-10-23 Thread Daiki Ueno
FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ + +/* Written by Daiki Ueno

[PATCH v2 08/10] Update to Unicode 6.2.0

2014-10-23 Thread Daiki Ueno
* lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value. (unilbrk_table): Adjust table size. * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for LBP_RI. * lib/uniwbrk.in.h (WBP_RI): New enumeration value. * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c. Normalize table

[PATCH v2 07/10] Update to Unicode 6.1.0

2014-10-23 Thread Daiki Ueno
* lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh joining group name. * lib/unictype/joininggroup_name.h: Likewise. * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value. (unilbrk_table): Adjust table size. * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for LBP_HL.

[PATCH v2 03/10] unictype/joininggroup-of: Switch to 3-level table

2014-10-23 Thread Daiki Ueno
* lib/gen-uni-tables.c (output_joining_group): Switch to 3-level table to accommodate a joining group defined with higher code-point value. Since there are only 88 groups defined in Unicode 7.0.0, use 7-bit packed format for level3 entries. * lib/unictype/joininggroup_of.c (uc_joining_group): Adju

[PATCH v2 02/10] gen-uni-tables: Check out-of-range values added to 3-level tables

2014-10-23 Thread Daiki Ueno
* lib/gen-uni-tables.c (output_category, output_bidi_category) (output_joining_type, output_ident_category): Check out-of-range values added to 3-level tables. --- lib/gen-uni-tables.c | 13 + 1 file changed, 13 insertions(+) diff --git a/lib/gen-uni-tables.c b/lib/gen-uni-tables.c in

Re: libiconv detection failure

2014-10-23 Thread Daiki Ueno
ems to be detected. >> >> Here is a new test package: >> http://du-a.org/~ueno/junk/test-iconv-2.tar.gz > > Thanks, this works. Thanks for testing, pushed. Regards, -- Daiki Ueno

Re: [PATCH v2 00/10] Update libunistring-related modules to Unicode 7.0.0

2014-10-23 Thread Daiki Ueno
ks. Will fix those in the next update. Also, I wasn't aware that a manual update is needed for uniwidth/width.h; that will be fixed as well. Regards, -- Daiki Ueno

Re: m4-1.4.17 test-mbrtowc3.sh fails on Solaris without European localization

2014-11-07 Thread Daiki Ueno
r under Japanese locale.) Perhaps it would be good to replace mbrtowc on Solaris, though I have no idea how to detect the wrong behavior without depending on particular locale data. Alternatively, we could simply ignore this test failure on Solaris, since the tested calling convention is not very common. Thoughts? Regards, -- Daiki Ueno

Re: [PATCH v2 00/10] Update libunistring-related modules to Unicode 7.0.0

2014-11-12 Thread Daiki Ueno
Daiki Ueno writes: > Paul Eggert writes: > >> On 10/23/2014 04:43 AM, Pádraig Brady wrote: >>> Except for the assert() nit, I can't find any issues. >> >> My only nit was adding the "#if 0"; might as well just delete the code >> instea

Re: "test-lock" stuck on FreeBSD

2014-11-17 Thread Daiki Ueno
e to wait. As I'm getting more reports (perhaps) related to this, I've filed a bug at the FreeBSD bugzilla, with a reproducer written in plain pthreads: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195098 Regards, -- Daiki Ueno

[PATCH] pipe-filter-gi, pipe-filter-ii: port to AIX

2014-11-18 Thread Daiki Ueno
I've also uploaded a test package at: http://du-a.org/~ueno/junk/test-pipe-filter-ii-aix.tar.gz Regards, -- Daiki Ueno >From 17a0216558375b833ca11adeb39eedd42fbd42e3 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Tue, 18 Nov 2014 21:11:09 +0900 Subject: [PATCH] pipe-filter-gi, pipe-f

Re: [PATCH] pipe-filter-gi, pipe-filter-ii: port to AIX

2014-11-22 Thread Daiki Ueno
Daiki Ueno writes: > On AIX 7.1, 'select' is defined as static and cannot be referred > from inline function. > * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand > the definition... > * lib/pipe-filter-gi.c (filter_loop): ...here, and...

[PATCH] uniname/uniname-tests: skip if system's libunistring is used

2014-11-27 Thread Daiki Ueno
ould rather prefer Gnulib modules. Does anyone know what's the rationale behind this? Regards, -- Daiki Ueno >From 1125daef9fc55de5af4fd9ebd71cc63a26c5051b Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Thu, 27 Nov 2014 16:46:38 +0900 Subject: [PATCH] uniname/uniname-tests: skip if system

Re: [bug-libunistring] [PATCH] uniname/uniname-tests: skip if system's libunistring is used

2014-11-27 Thread Daiki Ueno
el, based on whether the Gnulib module is compiled). Regards, -- Daiki Ueno >From 72d21c164fe1ab24b508f770f436d3ceacbefeec Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Thu, 27 Nov 2014 18:46:43 +0900 Subject: [PATCH] uniname/uniname-tests: skip if system's libunistring is used * modules/uniname

  1   2   >