All of lore.kernel.org
 help / color / mirror / Atom feed
From: Till Kamppeter <till.kamppeter@gmail.com>
To: Roger Leigh <rleigh@whinlatter.ukfsn.org>
Cc: Robert Krawitz <rlk@alum.mit.edu>,
	printing-architecture@lists.linux-foundation.org,
	printing-japan@lists.linux-foundation.org,
	gimp-print-devel@lists.sourceforge.net, jriddell@ubuntu.com
Subject: Re: [Printing-architecture] [Gimp-print-devel] Common Printing Dialog: PPD extension specs updated
Date: Tue, 05 Aug 2008 00:41:49 +0200	[thread overview]
Message-ID: <489785AD.5060806@gmail.com> (raw)
In-Reply-To: <873alk8lwp.fsf@hardknott.home>



Roger Leigh wrote:
> Well, the problem here is simple.  The program fails as expected
> because you *don't have a valid locale* for the testcase to use:
> 
>   // Initial setlocale call must succeed, or else we're still in a C
>   // locale, and gettext won't translate at all.
>   const char *l1 = setlocale(LC_ALL, "en_GB.ISO-8859-1");
> 
> Do you have a valid en_GB.ISO-8859-1 locale?  If not, then change this
> to a different locale (e.g. "" to use your en_US locale), or generate
> the locale.  To do the test as I requested above however, you *must*
> start off in a non-UTF-8 locale to verify that the UTF-8 transcoding
> is working properly, or else the test is not useful, though it will
> verify we can do lookups while using "invalid" locales.
> 
> What results do you get if you fix this?

Now the results are better.

I did

sudo locale-gen en_US.ISO-8859-15
    (locale must be listed in /usr/share/i18n/SUPPORTED)

edited gettext-test.c to have a line

const char *l1 = setlocale(LC_ALL, "en_US.ISO-8859-15");

and all the rest like before.

Then I get as screen output:

setlocale1: en_US.ISO-8859-15
setlocale2: (null)
setlocale3: en_US.ISO-8859-15
domain: /home/till/gutenprint/cvs/HEAD/x
codset (null)->UTF-8
selected-domain: gutenprint
lookup: Foto aus fünf Farben gemischt
dlookup: Foto aus fünf Farben gemischt

So in this case translations work and encoding works. st.out is 
attached. So this means that the system needs at least one non-C locale 
and the PPD generator has to find and select it.

    Till

  parent reply	other threads:[~2008-08-04 22:41 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-30 15:50 [Printing-architecture] Common Printing Dialog: PPD extension specs updated Till Kamppeter
     [not found] ` <4890962F.4000305@apple.com>
2008-07-30 16:38   ` Till Kamppeter
     [not found]     ` <4890AD59.6090902@apple.com>
2008-07-30 19:39       ` [Printing-architecture] [Gimp-print-devel] " Till Kamppeter
2008-07-30 19:54 ` [Printing-architecture] " Till Kamppeter
     [not found]   ` <200807310148.m6V1mTkP006833@dsl092-065-009.bos1.dsl.speakeasy.net>
2008-07-31  7:10     ` [Printing-architecture] [Gimp-print-devel] " Till Kamppeter
     [not found]   ` <200807310223.m6V2NkAv006976@dsl092-065-009.bos1.dsl.speakeasy.net>
2008-07-31  9:18     ` Till Kamppeter
     [not found]       ` <200807311226.m6VCQED9017811@dsl092-065-009.bos1.dsl.speakeasy.net>
2008-07-31 13:38         ` Till Kamppeter
     [not found]           ` <200807311345.m6VDjJFT018162@dsl092-065-009.bos1.dsl.speakeasy.net>
2008-07-31 14:03             ` Till Kamppeter
2008-07-31 14:05         ` Till Kamppeter
     [not found]       ` <200807311309.m6VD9s5n018013@dsl092-065-009.bos1.dsl.speakeasy.net>
2008-07-31 14:02         ` Till Kamppeter
     [not found]         ` <p06110400c4b793ad4cd1@[192.168.1.102]>
     [not found]           ` <200807312114.m6VLEhgd004613@dsl092-065-009.bos1.dsl.speakeasy.net>
2008-07-31 21:37             ` Till Kamppeter
     [not found]               ` <200807312156.m6VLusVF004364@dsl092-065-009.bos1.dsl.speakeasy.net>
2008-08-01  7:09                 ` Till Kamppeter
     [not found]                   ` <200808011134.m71BYXdK003793@dsl092-065-009.bos1.dsl.speakeasy.net>
2008-08-01 12:13                     ` Till Kamppeter
     [not found]                       ` <20080801123314.GA26452@nagini.vm.bytemark.co.uk>
2008-08-01 12:55                         ` Till Kamppeter
     [not found]                           ` <20080801130821.GC26452@nagini.vm.bytemark.co.uk>
2008-08-01 13:19                             ` Till Kamppeter
     [not found]                               ` <48934778.1080504@apple.com>
     [not found]                                 ` <87ej58mptc.fsf@hardknott.home>
     [not found]                                   ` <4893A466.5040103@apple.com>
     [not found]                                     ` <87tze4l0sr.fsf@hardknott.home>
     [not found]                                       ` <200808020120.m721K3Uw007245@dsl092-065-009.bos1.dsl.speakeasy.net>
     [not found]                                         ` <87wsizvbdh.fsf@hardknott.home>
     [not found]                                           ` <87ej57v8gj.fsf@hardknott.home>
2008-08-04 14:41                                             ` Till Kamppeter
2008-08-04 21:08                                             ` Till Kamppeter
     [not found]                                               ` <873alk8lwp.fsf@hardknott.home>
2008-08-04 22:41                                                 ` Till Kamppeter [this message]
     [not found]                         ` <200808011243.m71ChRZ9004044@dsl092-065-009.bos1.dsl.speakeasy.net>
     [not found]                           ` <20080801130240.GB26452@nagini.vm.bytemark.co.uk>
     [not found]                             ` <200808011308.m71D8CMM004429@dsl092-065-009.bos1.dsl.speakeasy.net>
2008-08-01 13:40                               ` Till Kamppeter
     [not found]                           ` <48934629.3060501@apple.com>
2008-08-01 17:26                             ` Till Kamppeter
2008-08-01 12:52                     ` Till Kamppeter
2008-08-01  7:15                 ` Till Kamppeter
     [not found]         ` <4895C323.7060005@apple.com>
     [not found]           ` <200808031506.m73F6GPe025447@dsl092-065-009.bos1.dsl.speakeasy.net>
     [not found]             ` <200808030932.38287.hvengel@astound.net>
2008-08-04 21:53               ` Till Kamppeter
     [not found]                 ` <4897BF6A.9090806@apple.com>
     [not found]                   ` <200808050027.23995.hvengel@astound.net>
2008-08-05  8:20                     ` Till Kamppeter
     [not found]               ` <200808031431.06482.hvengel@astound.net>
2008-08-04 22:22                 ` [Printing-architecture] [Gimp-print-devel] Common Printing Dialog: Color Management (was)PPD " Till Kamppeter
     [not found]                   ` <200808050116.25204.hvengel@astound.net>
2008-08-05  8:30                     ` Till Kamppeter
2008-08-05 12:36                       ` peter sikking

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=489785AD.5060806@gmail.com \
    --to=till.kamppeter@gmail.com \
    --cc=gimp-print-devel@lists.sourceforge.net \
    --cc=jriddell@ubuntu.com \
    --cc=printing-architecture@lists.linux-foundation.org \
    --cc=printing-japan@lists.linux-foundation.org \
    --cc=rleigh@whinlatter.ukfsn.org \
    --cc=rlk@alum.mit.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.