Mailinglist Archive: opensuse-bugs (4671 mails)

< Previous Next >
[Bug 640408] a2ps assumes letter size paper in germany
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Tue, 21 Sep 2010 11:07:32 +0000
  • Message-id: <20100921110732.4B842245520@xxxxxxxxxxxxxxxxxxxxxx>

https://bugzilla.novell.com/show_bug.cgi?id=640408

https://bugzilla.novell.com/show_bug.cgi?id=640408#c5


--- Comment #5 from Dr. Werner Fink <werner@xxxxxxxxxx> 2010-09-21 11:07:31 UTC
---
Use /etc/bash.bashrc.local ... beside this LC_PAPER is already set by
using LANG=de_DE.UTF-8 that is that locale(1) reports
LC_PAPER=de_DE.UTF-8 and my patch uses

case 'M': /* select a medium */
+#ifdef LC_PAPER
+ if (!strcasecmp("LC_PAPER", optarg))
+ {
+ unsigned int paperheight = (unsigned
int)nl_langinfo(_NL_PAPER_HEIGHT);
+ if (paperheight && paperheight == 279)
+ optarg = xstrdup("letter");
+ else
+ optarg = xstrdup("a4");
+ }
+#endif
xstrcpy (job->medium_request, optarg);
break;

to detect this.

In other words LC_PAPER=A4 is nonsense.

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
References