pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/44863: print/poppler's MESSAGE



The following reply was made to PR pkg/44863; it has been noted by GNATS.

From: David Holland <dholland-pbugs%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: pkg/44863: print/poppler's MESSAGE
Date: Sun, 29 Dec 2013 23:53:47 +0000

 On Sun, Dec 29, 2013 at 11:15:00PM +0000, David Holland wrote:
  >  The MESSAGE is technically not exact indeed, but I think it is not
  >  too bad.
  >  
  >  At first, the code which selects the default paper size is not in poppler
  >  but in gtk2. [...]
 
 If gtk2 picks the paper size based on the LC_MESSAGES locale, then
 it's just broken. (Does upstream gtk2 still do this, or has it been
 fixed/changed in the intervening time?)
 
  >  This is indeed how the gtk2 code works. It uses LC_MESSAGES, unless
  >  either _NL_PAPER_WIDTH exists for nl_langinfo(3) or a special
  >  LC_PAPER category. Neither does in NetBSD.
  >  For pkgsrc, it might make sense to use /etc/papersize through
  >  the "libpaper" pkg as other programs do, but this would mean
  >  patching gtk2.
 
 I think this would be a good idea.
 
 Also, should we add LC_PAPER to netbsd base?
 
  >  > Also, UTF-8 has nothing to do with paper size.
  >  
  >  Obviously not, but for end users it is better to give an example
  >  which works than to try to explain the theory.
  >  The "letter" size is also not limited to _US locales -- just ftr
  >  the exact list is (BZ|CA|CL|CO|CR|GT|MX|NI|PA|PH|PR|SV|US|VE).
 
 I suppose, but it's pretty unfortunate.
 
 If nothing else, I think the MESSAGE should be moved to poppler-glib.
 
 -- 
 David A. Holland
 dholland%netbsd.org@localhost
 


Home | Main Index | Thread Index | Old Index