8 Commits

Author SHA1 Message Date
Claudio Matsuoka
3635c3c5b4 Set version number to 2.2.3
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2011-01-12 00:35:48 -02:00
Claudio Matsuoka
d971045702 Update version number and changelog file
List current changes to the CHANGES file and call this version 2.3.
The version and date must be updated in several places before the
final release, including the FAQ and all man pages.

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2011-01-12 00:27:50 -02:00
Claudio Matsuoka
6b41034f2f Address Turbo C warnings
Same case as before, return from main() using return instead of exit().

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2011-01-11 19:47:09 -02:00
Claudio Matsuoka
a2d9196f41 Address unitialized variable compiler warnings
Either initialize unitialized variables to sensible values, or supress
the warning in case the variable is always correctly initialized.

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2011-01-11 17:14:16 -02:00
Claudio Matsuoka
caf8b1fcfd Fix memory violation when smushing at line start
Smushing characters at the line start can cause the next character to
be copied to an offset before the start of the line buffer. In this
case, add an offset to source and copy to a valid destination position.

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2011-01-11 10:59:54 -02:00
Micah Cowan
634ec7e6c8 Fix behavior of JIS0201 SHIFT-OUT and SHIFT-IN
By Micah Cowan: "the meanings of the SHIFT-OUT (0x0E) and SHIFT-IN
(0x0F) seem to be reversed: SHIFT-OUT is intended to invoke G0 into GL,
and SHIFT-IN to invoke G1 into GR; however, the command

  $ printf 'Hell\x0Er' | figlet

appears to cause figlet to interpret the final "r" as... an "r", whereas

  $ printf 'Hell\x0Fr' | figlet

causes figlet to interpret the final "r" to be interpreted as SMALL
LETTER o WITH GRAVE ACCENT. I would expect exactly the opposite results.
A quick look at iso2022() seems to verify that character code 14 is
invoking G0 to GL, rather than G1."

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2011-01-10 17:07:59 -02:00
Claudio Matsuoka
27cd08716a Address compiler warnings
Add missing headers, remove unused variables, specify implicit types.
Ensure compatibility with ancient systems is maintained.

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2011-01-10 08:04:29 -02:00
Claudio Matsuoka
47c9d2db33 Import FIGlet 2.2.2
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2011-01-10 07:37:04 -02:00