View | Details | Raw Unified | Return to bug 53318
Collapse All | Expand All

(-)a2ps-4.15.6_copy/src/main.c (+9 lines)
Lines 26-31 Link Here
26
26
27
#include <signal.h>
27
#include <signal.h>
28
#include <locale.h>
28
#include <locale.h>
29
#include <string.h>
29
30
30
#include "a2ps.h"
31
#include "a2ps.h"
31
#include "argmatch.h"
32
#include "argmatch.h"
Lines 917-922 Link Here
917
main (int argc, char *argv[])
918
main (int argc, char *argv[])
918
{
919
{
919
  int argn;
920
  int argn;
921
  char *locale;
920
922
921
  /* Name under which this program was called. */
923
  /* Name under which this program was called. */
922
  program_name = base_name (argv[0]);
924
  program_name = base_name (argv[0]);
Lines 928-933 Link Here
928
  setlocale (LC_CTYPE, "");
930
  setlocale (LC_CTYPE, "");
929
  setlocale (LC_PAPER, "");
931
  setlocale (LC_PAPER, "");
930
932
933
  locale = setlocale (LC_ALL, "");
934
  /* fprintf(stderr, "locale : %s\n", locale); */
935
931
  bindtextdomain (PACKAGE, LOCALEDIR);
936
  bindtextdomain (PACKAGE, LOCALEDIR);
932
  bindtextdomain (PACKAGE "-gnulib", LOCALEDIR);
937
  bindtextdomain (PACKAGE "-gnulib", LOCALEDIR);
933
  textdomain (PACKAGE);
938
  textdomain (PACKAGE);
Lines 988-993 Link Here
988
  sheets_map = sheets_map_new ();
993
  sheets_map = sheets_map_new ();
989
  style_sheets = new_style_sheets ();
994
  style_sheets = new_style_sheets ();
990
995
996
  /* Process special case: Japanese Document */
997
  if (! strncmp (locale, "ja", 2) )
998
    job->requested_encoding_name = xstrdup ("euc-jp");
999
991
  /* Process the command line options. */
1000
  /* Process the command line options. */
992
  argn = a2ps_handle_options (job, argc, argv);
1001
  argn = a2ps_handle_options (job, argc, argv);
993
  switch (behavior) {
1002
  switch (behavior) {

Return to bug 53318