]>
granicus.if.org Git - recode/log
Reuben Thomas [Mon, 30 Sep 2019 15:25:28 +0000 (16:25 +0100)]
Update nl.po
Reuben Thomas [Thu, 26 Sep 2019 07:51:08 +0000 (08:51 +0100)]
Update pt.po
Reuben Thomas [Fri, 13 Sep 2019 12:29:28 +0000 (13:29 +0100)]
Update pofiles
Reuben Thomas [Fri, 13 Sep 2019 12:28:50 +0000 (13:28 +0100)]
Bump version to 3.7.6 and add NEWS
Reuben Thomas [Thu, 12 Sep 2019 21:35:03 +0000 (22:35 +0100)]
Fix Cython file extension on mingw64: seems to be .dll now, not .pyd
Reuben Thomas [Thu, 12 Sep 2019 20:49:28 +0000 (21:49 +0100)]
Merge pull request #23 from ppisar/signedness
test: Fix signedness mismatch
Petr Písař [Thu, 12 Sep 2019 10:43:56 +0000 (12:43 +0200)]
test: Fix signedness mismatch
GCC 9.2.1 warns:
Recode.c: In function ‘__pyx_pf_6Recode_7Request_8pair_sequence’:
Recode.c:3096:45: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘short int’ [-Wsign-compare]
3096 | for (__pyx_v_counter = 0; __pyx_v_counter < __pyx_t_2; __pyx_v_counter++) {
| ^
A comparison between differently signed variable is dangerous because the
signed value is converted to an unsigned value of the same width and that
mangles the value and leads to comparing unintended values.
This patch fixes it.
Reuben Thomas [Wed, 11 Sep 2019 19:12:21 +0000 (20:12 +0100)]
Switch from Valgrind to ASAN
Reuben Thomas [Wed, 11 Sep 2019 18:46:53 +0000 (19:46 +0100)]
Fix a couple of potential buffer overflows
Reuben Thomas [Wed, 11 Sep 2019 16:53:05 +0000 (17:53 +0100)]
po/recode.pot: update
Reuben Thomas [Wed, 11 Sep 2019 16:43:55 +0000 (17:43 +0100)]
Bump version to 3.7.5 and add NEWS
Reuben Thomas [Tue, 10 Sep 2019 16:41:18 +0000 (17:41 +0100)]
Port to Python 3 (fix #15)
Reuben Thomas [Sun, 1 Sep 2019 23:51:03 +0000 (00:51 +0100)]
Update pofiles
Reuben Thomas [Sun, 1 Sep 2019 23:44:47 +0000 (00:44 +0100)]
Bump version to 3.7.4 and add NEWS
Reuben Thomas [Sun, 1 Sep 2019 15:30:48 +0000 (16:30 +0100)]
tests/t50_methods.py: remove obsolete tests
The --sequence option no longer does anything, so remove tests that differ
only in that flag; shorten the remaining code.
Reuben Thomas [Sun, 1 Sep 2019 15:30:04 +0000 (16:30 +0100)]
src/main.c: close output file before renaming (fix for Windows)
Also, set binary mode on temporary file only after checking it was opened
correctly.
Reuben Thomas [Sat, 31 Aug 2019 18:34:40 +0000 (19:34 +0100)]
Bump version to 3.7.3 and add NEWS
Reuben Thomas [Sat, 31 Aug 2019 00:03:55 +0000 (01:03 +0100)]
Travis: use Xenial for Linux; get cython via pip and Python via brew on macOS
Reuben Thomas [Fri, 30 Aug 2019 23:04:48 +0000 (00:04 +0100)]
Update pofiles
Reuben Thomas [Fri, 30 Aug 2019 23:02:13 +0000 (00:02 +0100)]
Update gl-mod/bootstrap, so we deep-clone gnulib
Reuben Thomas [Tue, 27 Aug 2019 22:29:01 +0000 (23:29 +0100)]
AppVeyor: fix build: default is now Python 3, so get Python 2 explicitly
Reuben Thomas [Mon, 19 Aug 2019 18:54:17 +0000 (19:54 +0100)]
Version the shared library (fix #22)
Reuben Thomas [Fri, 16 Aug 2019 13:05:58 +0000 (14:05 +0100)]
Update pofiles and version.texi
Reuben Thomas [Fri, 16 Aug 2019 12:58:25 +0000 (13:58 +0100)]
Bump version to 3.7.2
Reuben Thomas [Fri, 16 Aug 2019 12:49:05 +0000 (13:49 +0100)]
Update pofiles
Reuben Thomas [Fri, 16 Aug 2019 12:48:57 +0000 (13:48 +0100)]
Replace (out of date) postal address for FSF with URL throughout
Reuben Thomas [Fri, 16 Aug 2019 12:11:50 +0000 (13:11 +0100)]
Remove unnecessary ltconfig
Reuben Thomas [Fri, 16 Aug 2019 11:58:38 +0000 (12:58 +0100)]
Update COPYING-LIB to match LGPLv3+ license (fix #21)
Reuben Thomas [Tue, 23 Jul 2019 12:59:30 +0000 (13:59 +0100)]
Update eo.po
Reuben Thomas [Mon, 24 Jun 2019 22:00:20 +0000 (00:00 +0200)]
Merge pull request #19 from shlomif/py3-take2
help2man
Shlomi Fish [Mon, 24 Jun 2019 21:20:18 +0000 (00:20 +0300)]
Fix issue #18.
See https://github.com/rrthomas/recode/issues/18 . help2man error.
Reuben Thomas [Fri, 24 May 2019 12:03:34 +0000 (13:03 +0100)]
Update pofiles
Reuben Thomas [Thu, 23 May 2019 21:19:06 +0000 (22:19 +0100)]
Update PO files
Reuben Thomas [Tue, 21 May 2019 15:49:27 +0000 (16:49 +0100)]
Add uk.po
Reuben Thomas [Tue, 21 May 2019 15:49:13 +0000 (16:49 +0100)]
Update pofiles
Reuben Thomas [Mon, 20 May 2019 13:00:36 +0000 (14:00 +0100)]
bootstrap.conf: correct the license version (3 not 3.1) and wording
Refer only to this file. Thanks, Benno Schulenberg for pointing out the
problems.
Reuben Thomas [Mon, 20 May 2019 13:00:18 +0000 (14:00 +0100)]
src/Makefile.am: fix GNU Make-specific use of $<
Reuben Thomas [Wed, 26 Sep 2018 08:32:45 +0000 (09:32 +0100)]
Allow tests to run on macOS (fixes #12)
Thanks to Ryan Schmidt for the fix.
Reuben Thomas [Mon, 24 Sep 2018 20:14:44 +0000 (21:14 +0100)]
Update doc/version.texi and PO files
Reuben Thomas [Mon, 24 Sep 2018 20:13:47 +0000 (21:13 +0100)]
Add NEWS entry for 3.7.1
Reuben Thomas [Mon, 24 Sep 2018 20:11:07 +0000 (21:11 +0100)]
Bump version to 3.7.1
Reuben Thomas [Sat, 22 Sep 2018 20:00:35 +0000 (21:00 +0100)]
Update gnulib (fixes #11)
Reuben Thomas [Sun, 19 Aug 2018 21:32:23 +0000 (22:32 +0100)]
Travis: fix building with different versions of GCC
Install gcc, not g++ packages.
Set CC environment variable in ./configure call
Reuben Thomas [Fri, 3 Aug 2018 06:19:47 +0000 (07:19 +0100)]
perform_task: fix issue #4: don’t close file descriptors given by caller
Reuben Thomas [Tue, 17 Jul 2018 21:03:02 +0000 (22:03 +0100)]
Merge pull request #9 from Maelan/master
manual: document the current behaviour regarding French names
Maëlan [Tue, 17 Jul 2018 17:53:59 +0000 (19:53 +0200)]
manual: document the current behaviour regarding French names of characters
Reuben Thomas [Sun, 15 Jul 2018 16:18:11 +0000 (17:18 +0100)]
Merge pull request #7 from Maelan/master
testdump.c: remove code forgotten in commit
3051a87
Maëlan [Sun, 15 Jul 2018 13:05:03 +0000 (15:05 +0200)]
testdump.c: remove unused variable
Maëlan [Sun, 15 Jul 2018 12:30:38 +0000 (14:30 +0200)]
testdump.c: remove code forgotten in commit
3051a87 (function should_prefer_french)
Reuben Thomas [Fri, 1 Jun 2018 20:32:24 +0000 (21:32 +0100)]
Manual: highlight potential problems with iconv, and how to disable it
Reuben Thomas [Fri, 1 Jun 2018 19:40:13 +0000 (20:40 +0100)]
Update repo name to canonical case
Reuben Thomas [Fri, 1 Jun 2018 19:36:16 +0000 (20:36 +0100)]
main.c: fix copyright range in version message
Reuben Thomas [Fri, 1 Jun 2018 19:33:11 +0000 (20:33 +0100)]
help2man: call with --locale=en_US.UTF-8 to get UTF-8 transmitted
Reuben Thomas [Fri, 1 Jun 2018 19:25:37 +0000 (20:25 +0100)]
TODO: remove some, fix one
We have already overhauled the pipe method.
Fix an apparent typo (“converses” → “converters”)
Reuben Thomas [Fri, 1 Jun 2018 19:15:09 +0000 (20:15 +0100)]
main.c: improve description of --strict, fixing typo
Reuben Thomas [Thu, 8 Feb 2018 01:05:02 +0000 (01:05 +0000)]
Use AC_PATH_PROG instead of AX_WITH_PROG
Reuben Thomas [Wed, 7 Feb 2018 13:21:34 +0000 (13:21 +0000)]
AppVeyor: remove comment from another project
Reuben Thomas [Wed, 31 Jan 2018 22:52:53 +0000 (22:52 +0000)]
bootstrap.conf: fix timestamp, which somehow got set to the year 3018
Reuben Thomas [Wed, 31 Jan 2018 00:47:54 +0000 (00:47 +0000)]
Document use of python-dbg for testing with Valgrind
Reuben Thomas [Wed, 31 Jan 2018 00:44:12 +0000 (00:44 +0000)]
Bump po files and version.texi for release
Reuben Thomas [Tue, 30 Jan 2018 22:46:48 +0000 (22:46 +0000)]
task.c: slight simplification of recode_perform_task
Reuben Thomas [Tue, 30 Jan 2018 22:05:38 +0000 (22:05 +0000)]
Remove 'tree' surface (see NEWS for details)
Reuben Thomas [Tue, 30 Jan 2018 21:40:53 +0000 (21:40 +0000)]
Remove conversion methods
See NEWS for explanation and rationale.
Also reorder NEWS items for 3.7 better.
Reuben Thomas [Tue, 30 Jan 2018 21:26:00 +0000 (21:26 +0000)]
task.c: slight simplification in perform_sequence
Now does not need to mention RECODE_SEQUENCE_IN_MEMORY.
Reuben Thomas [Tue, 30 Jan 2018 21:05:37 +0000 (21:05 +0000)]
Fix pipe strategy (was previously broken for non-trivial pipes)
Reuben Thomas [Tue, 30 Jan 2018 20:04:46 +0000 (20:04 +0000)]
Compute Python extension suffix and use it
This information doesn’t seem to be available from Python, so write our own
test in configure.ac.
Reuben Thomas [Tue, 30 Jan 2018 19:21:19 +0000 (19:21 +0000)]
AppVeyor: make all before distcheck
It seems this is needed on Windows; it’s not a big deal, so rather than try
to fix the build system, just do it.
Reuben Thomas [Tue, 30 Jan 2018 19:17:52 +0000 (19:17 +0000)]
Fix fallthrough warnings from gcc using gnulib's FALLTHROUGH macro
Reuben Thomas [Tue, 30 Jan 2018 15:49:32 +0000 (15:49 +0000)]
Redefine BIT_MASK to avoid shifting negative quantity warning
Reuben Thomas [Tue, 30 Jan 2018 15:40:23 +0000 (15:40 +0000)]
Fix potential NULL dereference warnings
Reuben Thomas [Tue, 30 Jan 2018 15:36:16 +0000 (15:36 +0000)]
Fix fallthrough warnings for non-returning functions
Not yet using C11, so no _Noreturn yet.
Reuben Thomas [Tue, 30 Jan 2018 14:48:35 +0000 (14:48 +0000)]
src/Makefile.am: ensure recode is made before making man page
A line of the suggested code from the automake manual was missing.
Reuben Thomas [Tue, 30 Jan 2018 12:56:51 +0000 (12:56 +0000)]
Relicense from GPL 2 to GPL 3
Reuben Thomas [Tue, 30 Jan 2018 15:18:36 +0000 (15:18 +0000)]
Fix unused variable warnings
Move all pipe-specific code under #if HAVE_PIPE
Reuben Thomas [Tue, 30 Jan 2018 11:47:24 +0000 (11:47 +0000)]
Add LIBINTL flags to Cython module
They are not empty on all platforms!
Also Cython on MSYS seems to call gcc in such a way that it doesn’t
understand UNIX paths (it seems to understand them normally), so engage in
suitable shenanigans: this should work on any Windows system that has
cygpath.
Reuben Thomas [Tue, 30 Jan 2018 11:46:43 +0000 (11:46 +0000)]
Makefile.am: build po after src
strip-data.c is needed for po
Noticed when trying to build make distcheck directly from a fresh check-out.
Reuben Thomas [Mon, 29 Jan 2018 13:48:04 +0000 (13:48 +0000)]
AppVeyor: don’t bother reinstalling packages
base-devel, texinfo and help2man are pre-installed, so save time by not
causing them to be reinstalled.
Reuben Thomas [Tue, 30 Jan 2018 01:51:22 +0000 (01:51 +0000)]
t50_methods.py test: skip filter tests on Windows
Windows doesn’t have fork anyway, but also can’t cope with redirection in
the shell.
Reuben Thomas [Tue, 30 Jan 2018 01:49:50 +0000 (01:49 +0000)]
Set DEFAULT_CHARSET to ASCII for tests
Avoid problems with implicit surfaces in some charsets.
Reuben Thomas [Tue, 30 Jan 2018 00:27:38 +0000 (00:27 +0000)]
Do all I/O as binary
This is necessary for Windows. I'm not sure why it wasn't done before;
without it, Windows simply won't work correctly, without an extra layer of
checking the platform encoding.
Reuben Thomas [Tue, 30 Jan 2018 00:17:44 +0000 (00:17 +0000)]
Recode.pyx: add verbose argument to recode method
To ease debugging. Defaults to False.
Reuben Thomas [Mon, 29 Jan 2018 14:41:08 +0000 (14:41 +0000)]
Add more suppressions
Use of subprocess module seems to tickle Valgrind, so activate some existing
leak suppressions and add some more.
Reuben Thomas [Mon, 29 Jan 2018 13:48:04 +0000 (13:48 +0000)]
AppVeyor: install msys cython packages
They are available after all.
Add MINGW_BITS setting for MSYS for future use (currently disabled as
there’s no msys-flavour cython).
Reuben Thomas [Mon, 29 Jan 2018 13:47:20 +0000 (13:47 +0000)]
AppVeyor: configure with --enable-silent-rules for shorter logs
Also just go straight into make distcheck, no need to run just make [all]
first.
Reuben Thomas [Mon, 29 Jan 2018 13:47:04 +0000 (13:47 +0000)]
AppVeyor: don’t try to build on msys, no cython available there
Reuben Thomas [Mon, 29 Jan 2018 13:45:52 +0000 (13:45 +0000)]
Add some gitignore patterns for Windows
Reuben Thomas [Mon, 29 Jan 2018 13:52:21 +0000 (13:52 +0000)]
tests/Makefile.am: add EXEEXT suffix to RECODE for Windows
It is only needed when running from Python.
Reuben Thomas [Mon, 29 Jan 2018 13:51:16 +0000 (13:51 +0000)]
common.py: use subprocess.check_output instead of os.popen
This is more long-winded, but os.popen doesn't seem to work with
Unix-style paths on Windows.
Reuben Thomas [Sun, 28 Jan 2018 19:07:38 +0000 (19:07 +0000)]
macOS Travis fix: Cython extension needs installed librecode
Reuben Thomas [Sun, 28 Jan 2018 18:39:04 +0000 (18:39 +0000)]
outer.c: fix some incorrect casts when passing pointers to free
Reuben Thomas [Sun, 28 Jan 2018 00:49:10 +0000 (00:49 +0000)]
Add missing includes of locale.h
Reuben Thomas [Sat, 27 Jan 2018 23:21:24 +0000 (23:21 +0000)]
merged.c: include config.h
Reuben Thomas [Sat, 27 Jan 2018 21:53:47 +0000 (21:53 +0000)]
Travis update
Don’t install valgrind on macOS, as there’s no suitable python in brew.
Don’t install gettext from source on macOS, as brew’s is new enough.
Simplify some env var setting.
Reuben Thomas [Sat, 27 Jan 2018 18:28:23 +0000 (18:28 +0000)]
.travis.yml: macOS: make keg-only formulæ available to the build
Reuben Thomas [Sat, 27 Jan 2018 14:21:17 +0000 (14:21 +0000)]
Travis: configure --enable-silent-rules, to make overall logs shorter
Reuben Thomas [Sat, 27 Jan 2018 14:14:46 +0000 (14:14 +0000)]
request.c: zero realloc’d memory
For some reason this was being found by Valgrind on Travis, but not on my
dev machine.
Reuben Thomas [Sat, 27 Jan 2018 14:14:15 +0000 (14:14 +0000)]
request.c: slight simplification of code to handle malloc failure
Reuben Thomas [Sat, 27 Jan 2018 13:57:24 +0000 (13:57 +0000)]
Remove redundant memset calls zeroing memory
Now that ALLOC uses calloc.
Also replace a use of malloc then memset with calloc.
Reuben Thomas [Sat, 27 Jan 2018 13:26:30 +0000 (13:26 +0000)]
Fix building of lat1{ansel,iso5426}.h from respective .l files
Reuben Thomas [Sat, 27 Jan 2018 12:43:15 +0000 (12:43 +0000)]
task.c: slightly improve code and comments
This is the fruit of an aborted investigation into using pipes all the
time (it won’t work with the present architecture with translations into a
buffer).
It could be achieved by either a) adding one more stage to write to a file,
and having the parent process read that back, or b) adding an extra pipe
back to the parent process, but that would then require non-blocking I/O,
which would involve i) a new type of communication channel (e.g. file
descriptors), and ii) reimplementation, if desired, of buffering.
An overall simpler and more portable solution would be to convert the
parallel code to use threads instead of child processes, so that the output
buffer would remain accessible to the parent process.