bug-coreutils
[Top][All Lists]
Advanced

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

patch for problem with non-ASCII msgid in CVS ptx.c


From: Paul Eggert
Subject: patch for problem with non-ASCII msgid in CVS ptx.c
Date: 21 Sep 2003 23:53:59 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

I ran into the following build problem with CVS coreutils:

xgettext --default-domain=coreutils --directory=.. \
  --add-comments=TRANSLATORS: --keyword=_ --keyword=N_ \
  --files-from=./POTFILES.in \
  --copyright-holder='Free Software Foundation, Inc.' \
  --msgid-bugs-address='address@hidden'
xgettext: Non-ASCII string at src/ptx.c:35.
Please specify the source encoding through --from-code.
make[2]: *** [coreutils.pot-update] Error 1
make[2]: Leaving directory `/home/eggert/src/gnu/coreutils-dd/po'

Here's a patch, which uses the same solution that we've been using in
GNU Tar's source.  Namely, source files are always encoded in UTF-8,
and msgids are always in ASCII.

I know that Franc,ois Pinard prefers his name with a cedilla
(impossible with ASCII) and dislikes c-followed-by-comma, so in GNU
Tar we've taken the liberty of just using his initial in the msgid and
asking the translators to insert the cedilla if their character set
supports it.

This patch is a bit tricky since it changes the encoding of ptx.c from
Latin-1 to UTF-8.  I cannot reliably send the patch as text, since no
single encoding will do in email MIME format.  I'm therefore enclosing
it in traditional uuencoded format.

2003-09-21  Paul Eggert  <address@hidden>

        * src/ptx.c: Switch encoding from Latin-1 to UTF-8.
        (WRITTEN_BY): Change "Franc,ois" (actually using
        c-with-cedilla in Latin-1) to "F.", so that it's ASCII, as
        xgettext requires.

        You may need to append the following to your .emacs file:
        (prefer-coding-system 'utf-8)

begin 644 ptx.patch
address@hidden('-R8R]P='@N8PH]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]
M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]"E)#4R!F
M:6QE.B`O8W9S<F]O="]C;W)E=71I;',O8V]R975T:6QS+W-R8R]P='@N8RQV
M"G)E=')I979I;F<@<F5V:7-I;VX@,2XS,@ID:69F("UP("UU("UR,2XS,B!P
M='@N8PHM+2T@<W)C+W!T>"YC"3$X(%-E<"`R,#`S(#(R.C$Y.C`T("TP,#`P
M"3$N,S(**RLK('-R8R]P='@N8PDR,B!397`@,C`P,R`P-CHS-CHU,2`M,#`P
M,`I`0"`M,2PV("address@hidden("\J(%!E<FUU=&5D(&EN9&5X(&9O<B!'3E4L
M('=I=&@@:V5Y=V]R9',@:address@hidden&AE:7(@8V]N=&5X="X*("`@($-O<'ER:6=H
M="`H0RD@,3DY,"P@,3DY,2P@,3DY,RP@,3DY."TR,#`S(address@hidden'=A
M<address@hidden;F1A=&EO;address@hidden@HM("address@hidden)A;N=O:7,@4&EN87)D(#QP:6YA
M<F1`:7)O+G5M;VYT<F5A;"YC83XL(address@hidden"BL@("!&<F%NPZ=O:7,@4&EN
M87)D(#QP:6YA<F1`:7)O+G5M;VYT<F5A;"YC83XL(address@hidden"B`*("`@(%1H
M:7,@<')O9W)A;2!I<R!F<F5E('-O9G1W87)E.R!Y;address@hidden(')E9&ES=')I
M8G5T92!I="!A;F0O;W(@;6]D:69Y"B`@("!I="!U;F1E<B!T:&address@hidden&5R;7,@
M;address@hidden&AE($=.52!'96YE<F%L(%!U8FQI8R!,:6-E;G-E(&%S('!U8FQI<VAE
M9"!B>0I`0"`M,38L-R`K,38L-R!`0`H@("address@hidden;F<@=VET:"!T:&ES('!R
M;V=R86T[(&EF(&YO="address@hidden)I=&address@hidden&address@hidden&AE(address@hidden'=A<address@hidden
M;F1A=&EO;BP*("`@($EN8RXL(#4Y(%1E;7!L92!0;&%C92`M(%-U:71E(#,S
M,"address@hidden&]N+"!-02`P,C$Q,2TQ,S`W+"!54T$N"B`*+2`@($9R86[G;VES
M(%!I;F%R9"`\<&EN87)D0&ER;RYU;6]N=')E86PN8V$^("HO"BL@("!&<F%N
MPZ=O:7,@4&EN87)D(#QP:6YA<F1`:7)O+G5M;VYT<F5A;"address@hidden(`H@
M(VEN8VQU9&4@/&-O;F9I9RYH/@H@"D!`("TS,BPW("LS,BPQ,"address@hidden@
M5&AE(&]F9FEC:6%L(&YA;64@;address@hidden&AI<R!P<F]G<F%M("AE+F<N+"!N;R!@
M9R<@<')E9FEX*2X@("HO"B`C9&5F:6YE(%!23T=204U?3D%-12`B<'1X(@H@
M"BTC9&5F:6YE(address@hidden@B5W)I='1E;B!B>2!&<F%NYV]I<R!0
M:6YA<F0N(BD**R\J($YO=&address@hidden&address@hidden')A;G-L871O<address@hidden&QE87-E('1R86YS
M;&address@hidden&EN87)D(B!T;R`B1G)A;L.G;VES"BL@("!0:6YA<F0B(&EF
M("+#IR(@*&,M=VET:"UC961I;&QA*2!I<R!A=F%I;&%B;&4@:address@hidden&AE"BL@
M("!T<F%N<VQA=&EO;B=S(&-H87)A8W1E<address@hidden(&5N8V]D:6YG+B`@
M*B\**R-D969I;address@hidden))5%1%3E]"62!?*")7<FET=&5N(&)Y($8N(%!I;F%R
M9"XB*0H@"B`O*B!.=6UB97(@;V8@<&]S<VEB;&address@hidden<F%C=&5R<R!I;B!A
F(&)Y=&4N("`J+PH@(V1E9FEN92!#2$%27U-%5%]325I%(#(address@hidden
`
end




reply via email to

[Prev in Thread] Current Thread [Next in Thread]