mirror of
https://git.zap.org.au/git/trader.git
synced 2024-10-27 18:20:13 -04:00
Merge branch master into with-autogenerated: bug fix in utils.c
This commit is contained in:
commit
8ab9365b54
8
INSTALL
8
INSTALL
@ -102,12 +102,12 @@ You can also run configure in a separate build-only directory tree. This
|
||||
feature requires GNU Make and allows you to keep the source code tree from
|
||||
being modified by the compilation process. To use this option, create a
|
||||
separate build directory, then run configure. For example, if you placed
|
||||
the Star Traders source code tree in $HOME/src/trader-7.10, you could run
|
||||
the Star Traders source code tree in $HOME/src/trader-7.11, you could run
|
||||
something like:
|
||||
|
||||
mkdir $HOME/build/trader-build-7.10
|
||||
cd $HOME/build/trader-build-7.10
|
||||
$HOME/src/trader-7.10/configure
|
||||
mkdir $HOME/build/trader-build-7.11
|
||||
cd $HOME/build/trader-build-7.11
|
||||
$HOME/src/trader-7.11/configure
|
||||
|
||||
Once again, the Autoconf manual describes these options (and many others):
|
||||
|
||||
|
8
NEWS
8
NEWS
@ -15,6 +15,14 @@ browse the Git repository on The ZAP Group web server at the following
|
||||
location: http://www.zap.org.au/gitweb/trader.git
|
||||
|
||||
|
||||
Version 7.11 (18th June, 2017)
|
||||
------------------------------
|
||||
|
||||
Bug fix: some architectures (such as ARM, PowerPC and S390) treat "char"
|
||||
as "unsigned char", and this caused b64decode() to fail while loading a
|
||||
saved game. Changed the relevant type from "char" to "int" to fix this.
|
||||
|
||||
|
||||
Version 7.10 (2nd June, 2017)
|
||||
-----------------------------
|
||||
|
||||
|
@ -26,7 +26,7 @@ dnl You should have received a copy of the GNU General Public License
|
||||
dnl along with this program. If not, see http://www.gnu.org/licenses/.
|
||||
|
||||
|
||||
AC_INIT([Star Traders], [7.10], [J.Zaitseff@zap.org.au], [trader],
|
||||
AC_INIT([Star Traders], [7.11], [J.Zaitseff@zap.org.au], [trader],
|
||||
[http://www.zap.org.au/software/trader/])
|
||||
AC_DEFINE([PACKAGE_AUTHOR], ["John Zaitseff"], [Package author])
|
||||
|
||||
|
@ -41,7 +41,7 @@
|
||||
.if \n[.g] .mso www.tmac
|
||||
.\"
|
||||
.\" *********************************************************************
|
||||
.TH TRADER 6 "2nd June, 2017" "Unix-like systems"
|
||||
.TH TRADER 6 "18th June, 2017" "Unix-like systems"
|
||||
.SH NAME
|
||||
trader \- a game of interstellar trading
|
||||
.\" *********************************************************************
|
||||
|
6
po/da.po
6
po/da.po
@ -12,10 +12,10 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: trader 7.10\n"
|
||||
"Project-Id-Version: trader 7.11\n"
|
||||
"Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n"
|
||||
"POT-Creation-Date: 2017-06-02 05:31+1000\n"
|
||||
"PO-Revision-Date: 2017-06-02 05:26+1000\n"
|
||||
"POT-Creation-Date: 2017-06-18 06:01+1000\n"
|
||||
"PO-Revision-Date: 2017-06-18 06:02+1000\n"
|
||||
"Last-Translator: Joe Hansen <joedalton2@yahoo.dk>\n"
|
||||
"Language-Team: Danish <dansk@dansk-gruppen.dk>\n"
|
||||
"Language: da\n"
|
||||
|
6
po/de.po
6
po/de.po
@ -12,10 +12,10 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: trader 7.10\n"
|
||||
"Project-Id-Version: trader 7.11\n"
|
||||
"Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n"
|
||||
"POT-Creation-Date: 2017-06-02 05:31+1000\n"
|
||||
"PO-Revision-Date: 2017-06-02 05:27+1000\n"
|
||||
"POT-Creation-Date: 2017-06-18 06:01+1000\n"
|
||||
"PO-Revision-Date: 2017-06-18 06:02+1000\n"
|
||||
"Last-Translator: Philipp Thomas <pth@suse.de>\n"
|
||||
"Language-Team: German <translation-team-de@lists.sourceforge.net>\n"
|
||||
"Language: de\n"
|
||||
|
@ -12,10 +12,10 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: trader 7.10\n"
|
||||
"Project-Id-Version: trader 7.11\n"
|
||||
"Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n"
|
||||
"POT-Creation-Date: 2017-06-02 05:31+1000\n"
|
||||
"PO-Revision-Date: 2017-06-02 05:27+1000\n"
|
||||
"POT-Creation-Date: 2017-06-18 06:01+1000\n"
|
||||
"PO-Revision-Date: 2017-06-18 06:02+1000\n"
|
||||
"Last-Translator: John Zaitseff <J.Zaitseff@zap.org.au>\n"
|
||||
"Language-Team: English (Australian) <(nothing)>\n"
|
||||
"Language: en_AU\n"
|
||||
|
@ -12,10 +12,10 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: trader 7.10\n"
|
||||
"Project-Id-Version: trader 7.11\n"
|
||||
"Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n"
|
||||
"POT-Creation-Date: 2017-06-02 05:31+1000\n"
|
||||
"PO-Revision-Date: 2017-06-02 05:27+1000\n"
|
||||
"POT-Creation-Date: 2017-06-18 06:01+1000\n"
|
||||
"PO-Revision-Date: 2017-06-18 06:02+1000\n"
|
||||
"Last-Translator: John Zaitseff <J.Zaitseff@zap.org.au>\n"
|
||||
"Language-Team: English (Canadian) <(nothing)>\n"
|
||||
"Language: en_CA\n"
|
||||
|
@ -12,10 +12,10 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: trader 7.10\n"
|
||||
"Project-Id-Version: trader 7.11\n"
|
||||
"Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n"
|
||||
"POT-Creation-Date: 2017-06-02 05:31+1000\n"
|
||||
"PO-Revision-Date: 2017-06-02 05:27+1000\n"
|
||||
"POT-Creation-Date: 2017-06-18 06:01+1000\n"
|
||||
"PO-Revision-Date: 2017-06-18 06:03+1000\n"
|
||||
"Last-Translator: John Zaitseff <J.Zaitseff@zap.org.au>\n"
|
||||
"Language-Team: English (British) <(nothing)>\n"
|
||||
"Language: en_GB\n"
|
||||
|
@ -12,10 +12,10 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: trader 7.10\n"
|
||||
"Project-Id-Version: trader 7.11\n"
|
||||
"Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n"
|
||||
"POT-Creation-Date: 2017-06-02 05:31+1000\n"
|
||||
"PO-Revision-Date: 2017-06-02 05:27+1000\n"
|
||||
"POT-Creation-Date: 2017-06-18 06:01+1000\n"
|
||||
"PO-Revision-Date: 2017-06-18 06:03+1000\n"
|
||||
"Last-Translator: John Zaitseff <J.Zaitseff@zap.org.au>\n"
|
||||
"Language-Team: English (US) <(nothing)>\n"
|
||||
"Language: en_US\n"
|
||||
|
6
po/eo.po
6
po/eo.po
@ -13,10 +13,10 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: trader 7.10\n"
|
||||
"Project-Id-Version: trader 7.11\n"
|
||||
"Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n"
|
||||
"POT-Creation-Date: 2017-06-02 05:31+1000\n"
|
||||
"PO-Revision-Date: 2017-06-02 05:27+1000\n"
|
||||
"POT-Creation-Date: 2017-06-18 06:01+1000\n"
|
||||
"PO-Revision-Date: 2017-06-18 06:03+1000\n"
|
||||
"Last-Translator: Felipe Castro <fefcas@gmail.com>\n"
|
||||
"Language-Team: Esperanto <translation-team-eo@lists.sourceforge.net>\n"
|
||||
"Language: eo\n"
|
||||
|
6
po/fi.po
6
po/fi.po
@ -13,10 +13,10 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: trader 7.10\n"
|
||||
"Project-Id-Version: trader 7.11\n"
|
||||
"Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n"
|
||||
"POT-Creation-Date: 2017-06-02 05:31+1000\n"
|
||||
"PO-Revision-Date: 2017-06-02 05:27+1000\n"
|
||||
"POT-Creation-Date: 2017-06-18 06:01+1000\n"
|
||||
"PO-Revision-Date: 2017-06-18 06:03+1000\n"
|
||||
"Last-Translator: Jorma Karvonen <karvonen.jorma@gmail.com>\n"
|
||||
"Language-Team: Finnish <translation-team-fi@lists.sourceforge.net>\n"
|
||||
"Language: fi\n"
|
||||
|
6
po/fr.po
6
po/fr.po
@ -19,10 +19,10 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: trader 7.10\n"
|
||||
"Project-Id-Version: trader 7.11\n"
|
||||
"Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n"
|
||||
"POT-Creation-Date: 2017-06-02 05:31+1000\n"
|
||||
"PO-Revision-Date: 2017-06-02 05:27+1000\n"
|
||||
"POT-Creation-Date: 2017-06-18 06:01+1000\n"
|
||||
"PO-Revision-Date: 2017-06-18 06:03+1000\n"
|
||||
"Last-Translator: Frédéric Marchal <fmarchal@perso.be>\n"
|
||||
"Language-Team: French <traduc@traduc.org>\n"
|
||||
"Language: fr\n"
|
||||
|
6
po/hr.po
6
po/hr.po
@ -12,10 +12,10 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: trader 7.10\n"
|
||||
"Project-Id-Version: trader 7.11\n"
|
||||
"Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n"
|
||||
"POT-Creation-Date: 2017-06-02 05:31+1000\n"
|
||||
"PO-Revision-Date: 2017-06-02 05:27+1000\n"
|
||||
"POT-Creation-Date: 2017-06-18 06:01+1000\n"
|
||||
"PO-Revision-Date: 2017-06-18 06:03+1000\n"
|
||||
"Last-Translator: Tomislav Krznar <tomislav.krznar@gmail.com>\n"
|
||||
"Language-Team: Croatian <lokalizacija@linux.hr>\n"
|
||||
"Language: hr\n"
|
||||
|
6
po/hu.po
6
po/hu.po
@ -12,10 +12,10 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: trader 7.10\n"
|
||||
"Project-Id-Version: trader 7.11\n"
|
||||
"Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n"
|
||||
"POT-Creation-Date: 2017-06-02 05:31+1000\n"
|
||||
"PO-Revision-Date: 2017-06-02 05:27+1000\n"
|
||||
"POT-Creation-Date: 2017-06-18 06:01+1000\n"
|
||||
"PO-Revision-Date: 2017-06-18 06:03+1000\n"
|
||||
"Last-Translator: Balázs Úr <urbalazs@gmail.com>\n"
|
||||
"Language-Team: Hungarian <translation-team-hu@lists.sourceforge.net>\n"
|
||||
"Language: hu\n"
|
||||
|
6
po/nb.po
6
po/nb.po
@ -12,10 +12,10 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: trader 7.10\n"
|
||||
"Project-Id-Version: trader 7.11\n"
|
||||
"Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n"
|
||||
"POT-Creation-Date: 2017-06-02 05:31+1000\n"
|
||||
"PO-Revision-Date: 2017-06-02 05:27+1000\n"
|
||||
"POT-Creation-Date: 2017-06-18 06:01+1000\n"
|
||||
"PO-Revision-Date: 2017-06-18 06:03+1000\n"
|
||||
"Last-Translator: Johnny A. Solbu <johnny@solbu.net>\n"
|
||||
"Language-Team: Norwegian Bokmaal <i18n-nb@lister.ping.uio.no>\n"
|
||||
"Language: nb\n"
|
||||
|
6
po/ru.po
6
po/ru.po
@ -15,10 +15,10 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: trader 7.10\n"
|
||||
"Project-Id-Version: trader 7.11\n"
|
||||
"Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n"
|
||||
"POT-Creation-Date: 2017-06-02 05:31+1000\n"
|
||||
"PO-Revision-Date: 2017-06-02 05:27+1000\n"
|
||||
"POT-Creation-Date: 2017-06-18 06:01+1000\n"
|
||||
"PO-Revision-Date: 2017-06-18 06:03+1000\n"
|
||||
"Last-Translator: Pavel Maryanov <acid@jack.kiev.ua>\n"
|
||||
"Language-Team: Russian <gnu@mx.ru>\n"
|
||||
"Language: ru\n"
|
||||
|
6
po/sr.po
6
po/sr.po
@ -13,10 +13,10 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: trader 7.10\n"
|
||||
"Project-Id-Version: trader 7.11\n"
|
||||
"Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n"
|
||||
"POT-Creation-Date: 2017-06-02 05:31+1000\n"
|
||||
"PO-Revision-Date: 2017-06-02 05:27+1000\n"
|
||||
"POT-Creation-Date: 2017-06-18 06:01+1000\n"
|
||||
"PO-Revision-Date: 2017-06-18 06:03+1000\n"
|
||||
"Last-Translator: Мирослав Николић <miroslavnikolic@rocketmail.com>\n"
|
||||
"Language-Team: Serbian <(nothing)>\n"
|
||||
"Language: sr\n"
|
||||
|
6
po/sv.po
6
po/sv.po
@ -12,10 +12,10 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: trader 7.10\n"
|
||||
"Project-Id-Version: trader 7.11\n"
|
||||
"Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n"
|
||||
"POT-Creation-Date: 2017-06-02 05:31+1000\n"
|
||||
"PO-Revision-Date: 2017-06-02 05:27+1000\n"
|
||||
"POT-Creation-Date: 2017-06-18 06:01+1000\n"
|
||||
"PO-Revision-Date: 2017-06-18 06:03+1000\n"
|
||||
"Last-Translator: Anders Jonsson <anders.jonsson@norsjovallen.se>\n"
|
||||
"Language-Team: Swedish <tp-sv@listor.tp-sv.se>\n"
|
||||
"Language: sv\n"
|
||||
|
@ -873,10 +873,10 @@ ssize_t b64decode (const void *restrict in, size_t inlen,
|
||||
n = 1;
|
||||
|
||||
for (size_t i = 0; i < inlen && *u_in != '\0'; i++, u_in++) {
|
||||
char c = *u_in > UNSCRAMBLE_TABLE_SIZE ?
|
||||
int v = *u_in > UNSCRAMBLE_TABLE_SIZE ?
|
||||
UNSCRAMBLE_INVALID : unscramble_table[*u_in];
|
||||
|
||||
switch (c) {
|
||||
switch (v) {
|
||||
case UNSCRAMBLE_INVALID:
|
||||
return -1;
|
||||
|
||||
@ -889,7 +889,7 @@ ssize_t b64decode (const void *restrict in, size_t inlen,
|
||||
continue;
|
||||
|
||||
default:
|
||||
n = n << 6 | c; // c is 0 .. 63
|
||||
n = n << 6 | v; // v is 0 .. 63
|
||||
|
||||
if (n & 0x1000000) {
|
||||
// Convert 24-bit number into three output bytes
|
||||
|
Loading…
Reference in New Issue
Block a user