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: Mon, 04 Aug 2008 16:41:23 +0200 [thread overview]
Message-ID: <48971513.6050202@gmail.com> (raw)
In-Reply-To: <87ej57v8gj.fsf@hardknott.home>
I have tried your test program on a system with English, French, and
German locales installed and get no translated text in the output.
My locale settings:
till@till-laptop:~/gutenprint/cvs/HEAD/print$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
till@till-laptop:~/gutenprint/cvs/HEAD/print$
Also running with "LC_ALL=" or "LC_ALL=en_GB.ISO-8859-1" did not change
anything.
Till
Till
Roger Leigh wrote:
> Roger Leigh <rleigh@whinlatter.ukfsn.org> writes:
>
>> As a result, I would suggest
>>
>> - simplifying stp_setlocale by removing the langage->locale mappings
>> (no longer needed). It could even just wrap setlocale with no
>> additional work.
>>
>> - simplify genppd set_language by simply doing
>> setenv("LANGUAGE, language, 1);
>>
>> By not messing with the locale, we remove the need for exotic locales
>> to exist--we just rely on the user having a working non-C locale.
>>
>> Obviously, this needs testing on Solaris and BSD systems (I guess
>> MacOS X won't use this code). Does anyone have access to such systems
>> to test?
>
> If anyone could test using the program I posted, that would be very
> helpful. Testing on other BSD, Solaris, UNIX and Linux systems would
> be great. I'm using glibc-2.7/gettext-0.17.
>
> http://nagini.vm.bytemark.co.uk/~rleigh/gettext-test.c
> http://nagini.vm.bytemark.co.uk/~rleigh/gutenprint.mo
>
> You'll need to
> - save gutenprint.mo as <foo>/de_GB/LC_MESSAGES/gutenprint.mo
> - set localedir to <foo> in gettext-test.c
> - set _GNU_SOURCE to _BSD_SOURCE in gettext-test.c (or whatever needs
> doing to get setenv() prototyped on BSD)
>
> Build with "gcc -std=c99 -o gettext-test gettext-test.c
> Run ./gettext-test
>
> You should see something similar to:
>
> % ./gettext-test
> setlocale1: en_GB.ISO-8859-1
> setlocale2: (null)
> setlocale3: en_GB.ISO-8859-1
> domain: /usr/share/locale
> codset (null)->UTF-8
> selected-domain: gutenprint
> lookup: Foto aus fünf Farben gemischt
> dlookup: Foto aus fünf Farben gemischt
>
> To make the test most realistic, start by setting a non-UTF-8-locale
> such as en_GB.ISO-8859-1 (any locale except C that is not UTF-8 is
> good). This tests correct recoding into UTF-8. This is also why we
> are using an ISO-8859-1 message catalogue. Above we see correct UTF-8
> output for a catalogue without a valid system locale, which is the
> objective.
>
>
> Regards,
> Roger
>
next prev parent reply other threads:[~2008-08-04 14: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] ` <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 [this message]
2008-08-04 21:08 ` Till Kamppeter
[not found] ` <873alk8lwp.fsf@hardknott.home>
2008-08-04 22:41 ` Till Kamppeter
[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
[not found] ` <200807311226.m6VCQED9017811@dsl092-065-009.bos1.dsl.speakeasy.net>
2008-07-31 13:38 ` [Printing-architecture] [Gimp-print-devel] Common Printing Dialog: PPD " 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
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=48971513.6050202@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.