Wed Feb 28 2001 SATO Satoru <ssato@redhat.com>
- bunzip2-ed all patches except eucjp
Thu Feb 22 2001 SATO Satoru <ssato@redhat.com>
- support Japanese
- bzip2-ed all patches
- replace macros (%makeinstall, %configure) with traditional commands to
avoid some troubles those macros caused.
Tue Feb 20 2001 Trond Eivind Glomsrød <teg@redhat.com>
- Using letter is as weird as oz, fl. oz, Fahrenheit, lb etc. Add a patch
for using the glibc media type for giving US letter for en_US (only
locale with this paper), and A4 for everyone else.
Tue Feb 20 2001 Tim Powers <timp@redhat.com>
- changed default medium back to letter (bug 27794)
Mon Feb 19 2001 Trond Eivind Glomsrød <teg@redhat.com>
- langify
- use %{_tmppath}
Mon Feb 12 2001 Tim Waugh <twaugh@redhat.com>
- Fix tmpfile security patch so that it actually _works_ (bug #27155).
Sun Jan 21 2001 Tim Waugh <twaugh@redhat.com>
- New-style prereq line.
- %post script requires fileutils (mv) and sh-utils (true). This should fix
bug #24251).
Mon Jan 08 2001 Trond Eivind Glomsrød <teg@redhat.com>
- Add /usr/bin/emacs to BuildRequires
- A4
- specify use of GNU Emacs for building
Fri Jan 05 2001 Preston Brown <pbrown@redhat.com>
- security patch for tmpfile creation from Olaf Kirch <okir@lst.de>
Mon Dec 11 2000 Preston Brown <pbrown@redhat.com>
- obsoleted old a2ps-i18n package (it was tiny) and included those fonts
directly here.
Thu Dec 07 2000 Tim Powers <timp@redhat.com>
- built for dist-7.1
Mon Aug 07 2000 Tim Powers <timp@redhat.com>
- update to 4.13b to fix some bugs, thanks to czar@acm.org for giving me a
heads up on this (bug #15679)
Mon Jul 24 2000 Prospector <prospector@redhat.com>
- rebuilt
Mon Jul 10 2000 Tim Powers <timp@redhat.com>
- rebuilt
Fri Jun 23 2000 Tim Powers <timp@redhat.com>
- info pages weren't getting gzipped.
- stdout & stderror redirected to /dev/null in post section
Mon Jun 19 2000 Tim Powers <timp@redhat.com>
- fixed bug 12451 which was a stupid mistake by me.
- quiet the post section
- added patches from michal@ellpspace.math.ualberta.ca and did some spec
file magic he suggested as well.
Fri Jun 02 2000 Tim Powers <timp@redhat.com>
- fixed bug 5876, was not setting the paper size to Letter again :(
- man pages and info pages to /usr/share, FHS compliant.
- used macros wherever possible
Wed May 31 2000 Tim Powers <timp@rehat.com>
- fixed bug #11078, now requires psutils
Wed Apr 26 2000 Tim Powers <timp@redhat.com>
- updated to 4.13
- compress man pages
Thu Feb 10 2000 Tim Powers <timp@redhat.com>
- gzip man pages
- strip binaries
Mon Jan 24 2000 Tim Powers <timp@redhat.com>
- had to be more specific since the i18n stuff was removed from the
package. There is a new a2ps-i18n package which treats the
/usr/share/a2ps/afm/fonts.map file as a config file
Wed Oct 27 1999 Tim Powers <timp@redhat.com>
- added the --with-medium=Letter option to the configure process
Thu Aug 05 1999 Tim Powers <timp@redhat.com>
- fixed problems with missing dirs as reported in bug 3822
- built for powertools
Tue Jul 06 1999 Tim Powers <timp@redhat.com>
- rebuilt for powertools 6.1
Wed May 12 1999 Bill Nottingham <notting@redhat.com>
- add a2ps-site.cfg
Mon Apr 26 1999 Preston Brown <pbrown@redhat.com>
- update to 4.12 for Powertools 6.0
Sat Oct 24 1998 Jeff Johnson <jbj@redhat.com>
- narrower range of %files splats.
- install info correctly.
- new description/summary text.
Tue Oct 06 1998 Michael Maher <mike@redhat.com>
- updated source
Sat Jul 04 1998 Michael Maher <mike@redhat.com>
- built package
40 lines
1.1 KiB
Diff
40 lines
1.1 KiB
Diff
--- a2ps-4.13.rh/src/main.c Fri Feb 23 17:39:02 2001
|
|
+++ a2ps-4.13.euc/src/main.c Fri Feb 23 23:07:40 2001
|
|
@@ -31,6 +31,8 @@
|
|
/* */
|
|
/************************************************************************/
|
|
#include <assert.h>
|
|
+#include <string.h>
|
|
+#include <locale.h>
|
|
|
|
#include "a2ps.h"
|
|
#include "argmatch.h"
|
|
@@ -925,6 +927,7 @@
|
|
main (int argc, char *argv[])
|
|
{
|
|
int argn;
|
|
+ char *locale;
|
|
|
|
/* Architecture specific initialization. */
|
|
#ifdef __EMX__
|
|
@@ -947,6 +950,9 @@
|
|
setlocale (LC_CTYPE, "");
|
|
setlocale (LC_PAPER, "");
|
|
|
|
+ locale = setlocale (LC_ALL, "");
|
|
+ /* fprintf(stderr, "locale : %s\n", locale); */
|
|
+
|
|
bindtextdomain (PACKAGE, LOCALEDIR);
|
|
textdomain (PACKAGE);
|
|
|
|
@@ -1013,6 +1019,10 @@
|
|
yet read sheets. */
|
|
sheets_map = sheets_map_new ();
|
|
style_sheets = new_style_sheets ();
|
|
+
|
|
+ /* Process special case: Japanese Document */
|
|
+ if (! strncmp (locale, "ja", 2) )
|
|
+ job->requested_encoding_name = xstrdup ("euc-jp");
|
|
|
|
/* Process the command line options. */
|
|
argn = a2ps_handle_options (job, argc, argv);
|