aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2012-02-07 22:47:39 +0200
committerArnold D. Robbins <arnold@skeeve.com>2012-02-07 22:47:39 +0200
commit4321116ab54f5177ae4a4d1dcd2a7dd7e1bd6419 (patch)
tree51450348cb30eb5d94750aaf71f86fe5c34c3a0b
parentd4dffed3fadd53db64a4a6a9c760820fdfa96e96 (diff)
downloadegawk-4321116ab54f5177ae4a4d1dcd2a7dd7e1bd6419.tar.gz
egawk-4321116ab54f5177ae4a4d1dcd2a7dd7e1bd6419.tar.bz2
egawk-4321116ab54f5177ae4a4d1dcd2a7dd7e1bd6419.zip
Minor bug fix, new .gmo files.
-rw-r--r--ChangeLog6
-rw-r--r--main.c3
-rw-r--r--po/de.gmobin52166 -> 52578 bytes
-rw-r--r--po/es.gmobin51471 -> 51849 bytes
-rw-r--r--po/fr.gmobin53311 -> 53704 bytes
5 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 54f96cc3..166ebc70 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-02-07 Arnold D. Robbins <arnold@skeeve.com>
+
+ * main.c (main): Move init of `output_fp' to before parsing of
+ program so that error messages from msg.c don't dump core.
+ Thanks to Michael Haardt <michael@moria.de>.
+
2012-01-13 Arnold D. Robbins <arnold@skeeve.com>
* dfa.c [is_valid_unibtye_character]: Fix from GNU grep to
diff --git a/main.c b/main.c
index 43a3e4a5..e148b2cb 100644
--- a/main.c
+++ b/main.c
@@ -304,6 +304,8 @@ main(int argc, char **argv)
/* init array handling. */
array_init();
+ output_fp = stdout;
+
/* we do error messages ourselves on invalid options */
opterr = FALSE;
@@ -676,7 +678,6 @@ out:
setlocale(LC_NUMERIC, "");
#endif
- output_fp = stdout;
interpret(code_block);
if (do_profiling) {
diff --git a/po/de.gmo b/po/de.gmo
index 0a64b291..6c6bbcdd 100644
--- a/po/de.gmo
+++ b/po/de.gmo
Binary files differ
diff --git a/po/es.gmo b/po/es.gmo
index 2bd17e29..407c31a8 100644
--- a/po/es.gmo
+++ b/po/es.gmo
Binary files differ
diff --git a/po/fr.gmo b/po/fr.gmo
index 39b7ec47..0a64d1b7 100644
--- a/po/fr.gmo
+++ b/po/fr.gmo
Binary files differ