Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 326205 - sci-electronics/geda-1.6.1 generates wrong /usr/share/mime/packages/libgeda.xml
Summary: sci-electronics/geda-1.6.1 generates wrong /usr/share/mime/packages/libgeda.xml
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: The Soldering-Iron Brotherhood
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-29 19:07 UTC by DEMAINE Benoît-Pierre, aka DoubleHP
Modified: 2012-05-25 13:49 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/tmp/emerge--info (emerge--info,15.52 KB, text/plain)
2010-06-29 19:08 UTC, DEMAINE Benoît-Pierre, aka DoubleHP
Details
/var/log/portage/sci-electronics:geda-1.6.1:20100626-025732.log (sci-electronics:geda-1.6.1:20100626-025732.log,547.91 KB, text/plain)
2010-07-04 13:14 UTC, DEMAINE Benoît-Pierre, aka DoubleHP
Details

Note You need to log in before you can comment on or make changes to this bug.
Description DEMAINE Benoît-Pierre, aka DoubleHP 2010-06-29 19:07:50 UTC
When emerging many ebuilds, like dia:

--- replaced obj /usr/bin/dia
--- replaced dir /usr/bin
--- replaced dir /usr
 * Updating desktop mime database ...
 * Updating shared mime info database ...
/usr/share/mime/packages/libgeda.xml:6: parser error : Input is not proper UTF-8, indicate encoding !
Bytes: 0xE9 0x6D 0x61 0x20
    <comment xml:lang="fr">Schéma de circuit gEDA</comment>
                              ^
Failed to parse '//usr/share/mime/packages/libgeda.xml'

 * Updating icons cache ...                                               [ ok ]
 * Updating scrollkeeper database ...
<<< /usr/share/dia/sheets/SISSI
>>> Original instance of package unmerged safely.
 * No GNOME 2 GConf schemas found
 * Updating desktop mime database ...
 * Updating shared mime info database ...
/usr/share/mime/packages/libgeda.xml:6: parser error : Input is not proper UTF-8, indicate encoding !
Bytes: 0xE9 0x6D 0x61 0x20
    <comment xml:lang="fr">Schéma de circuit gEDA</comment>
                              ^
Failed to parse '//usr/share/mime/packages/libgeda.xml'

 * Updating icons cache ...                                               [ ok ]
 * Updating scrollkeeper database ...
 * Compilation and optimization of Python modules for CPython 2.6 ...     [ ok ]
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.
uranus ~ #



uranus ~ # locale
LANG=en_GB.ISO-8859-15
LC_CTYPE="en_GB.ISO-8859-15"
LC_NUMERIC="en_GB.ISO-8859-15"
LC_TIME="en_GB.ISO-8859-15"
LC_COLLATE="en_GB.ISO-8859-15"
LC_MONETARY="en_GB.ISO-8859-15"
LC_MESSAGES="en_GB.ISO-8859-15"
LC_PAPER="en_GB.ISO-8859-15"
LC_NAME="en_GB.ISO-8859-15"
LC_ADDRESS="en_GB.ISO-8859-15"
LC_TELEPHONE="en_GB.ISO-8859-15"
LC_MEASUREMENT="en_GB.ISO-8859-15"
LC_IDENTIFICATION="en_GB.ISO-8859-15"
LC_ALL=en_GB.ISO-8859-15
uranus ~ # locale -a
C
en_GB
en_GB.iso885915
en_GB.iso88599
en_GB.utf8
en_US
en_US.iso88591
en_US.utf8
français
french
fr_FR
fr_FR@euro
fr_FR.iso88591
fr_FR.iso885915@euro
fr_FR.utf8
fr_FR.utf8@euro
POSIX
uranus ~ #

For my Linguas, see emerge --info
Comment 1 DEMAINE Benoît-Pierre, aka DoubleHP 2010-06-29 19:08:06 UTC
Created attachment 236961 [details]
/tmp/emerge--info

Good luck.
Comment 2 Thomas Beierlein gentoo-dev 2010-07-04 11:04:10 UTC
I cannot reproduce the problem.

'LINGUAS=fr emerge -1 geda' installs the french sentences in libgeda.xml with coding 'A3 E9' for the character in question.

Can you please xxd the libgeda.xml and have a look which coding is used in your version of libgeda.xml?
Comment 3 DEMAINE Benoît-Pierre, aka DoubleHP 2010-07-04 13:10:29 UTC
Maybe you need to do like me: LINGUAS="en fr en_GB fr_FR en_US"
Comment 4 DEMAINE Benoît-Pierre, aka DoubleHP 2010-07-04 13:10:37 UTC
dhp@uranus ~ $ xxd /usr/share/mime/packages/libgeda.xml
0000000: 3c3f 786d 6c20 7665 7273 696f 6e3d 2231  <?xml version="1
0000010: 2e30 2220 656e 636f 6469 6e67 3d22 7574  .0" encoding="ut
0000020: 662d 3822 3f3e 0a3c 6d69 6d65 2d69 6e66  f-8"?>.<mime-inf
0000030: 6f20 786d 6c6e 733d 2268 7474 703a 2f2f  o xmlns="http://
0000040: 7777 772e 6672 6565 6465 736b 746f 702e  www.freedesktop.
0000050: 6f72 672f 7374 616e 6461 7264 732f 7368  org/standards/sh
0000060: 6172 6564 2d6d 696d 652d 696e 666f 223e  ared-mime-info">
0000070: 0a20 203c 6d69 6d65 2d74 7970 6520 7479  .  <mime-type ty
0000080: 7065 3d22 6170 706c 6963 6174 696f 6e2f  pe="application/
0000090: 782d 6765 6461 2d73 6368 656d 6174 6963  x-geda-schematic
00000a0: 223e 0a20 2020 203c 7375 622d 636c 6173  ">.    <sub-clas
00000b0: 732d 6f66 2074 7970 653d 2274 6578 742f  s-of type="text/
00000c0: 706c 6169 6e22 2f3e 0a20 2020 203c 636f  plain"/>.    <co
00000d0: 6d6d 656e 743e 6745 4441 2063 6972 6375  mment>gEDA circu
00000e0: 6974 2073 6368 656d 6174 6963 3c2f 636f  it schematic</co
00000f0: 6d6d 656e 743e 0a20 2020 203c 636f 6d6d  mment>.    <comm
0000100: 656e 7420 786d 6c3a 6c61 6e67 3d22 6672  ent xml:lang="fr
0000110: 223e 5363 68e9 6d61 2064 6520 6369 7263  ">Sch.ma de circ
0000120: 7569 7420 6745 4441 3c2f 636f 6d6d 656e  uit gEDA</commen
0000130: 743e 0a20 2020 203c 636f 6d6d 656e 7420  t>.    <comment
0000140: 786d 6c3a 6c61 6e67 3d22 6672 5f46 5222  xml:lang="fr_FR"
0000150: 3e53 6368 e96d 6120 6465 2063 6972 6375  >Sch.ma de circu
0000160: 6974 2067 4544 413c 2f63 6f6d 6d65 6e74  it gEDA</comment
0000170: 3e0a 2020 2020 3c63 6f6d 6d65 6e74 2078  >.    <comment x
0000180: 6d6c 3a6c 616e 673d 2266 7222 3e53 6368  ml:lang="fr">Sch
0000190: e96d 6120 6465 2063 6972 6375 6974 2067  .ma de circuit g
00001a0: 4544 413c 2f63 6f6d 6d65 6e74 3e0a 2020  EDA</comment>.
00001b0: 2020 3c67 6c6f 6220 7061 7474 6572 6e3d    <glob pattern=
00001c0: 222a 2e73 6368 222f 3e0a 2020 2020 3c6d  "*.sch"/>.    <m
00001d0: 6167 6963 2070 7269 6f72 6974 793d 2237  agic priority="7
00001e0: 3022 3e0a 2020 2020 2020 3c6d 6174 6368  0">.      <match
00001f0: 2076 616c 7565 3d22 7620 3230 3022 2074   value="v 200" t
0000200: 7970 653d 2273 7472 696e 6722 206f 6666  ype="string" off
0000210: 7365 743d 2230 222f 3e0a 2020 2020 3c2f  set="0"/>.    </
0000220: 6d61 6769 633e 0a20 203c 2f6d 696d 652d  magic>.  </mime-
0000230: 7479 7065 3e0a 2020 3c6d 696d 652d 7479  type>.  <mime-ty
0000240: 7065 2074 7970 653d 2261 7070 6c69 6361  pe type="applica
0000250: 7469 6f6e 2f78 2d67 6564 612d 7379 6d62  tion/x-geda-symb
0000260: 6f6c 223e 0a20 2020 203c 7375 622d 636c  ol">.    <sub-cl
0000270: 6173 732d 6f66 2074 7970 653d 2274 6578  ass-of type="tex
0000280: 742f 706c 6169 6e22 2f3e 0a20 2020 203c  t/plain"/>.    <
0000290: 636f 6d6d 656e 743e 6745 4441 2073 6368  comment>gEDA sch
00002a0: 656d 6174 6963 2073 796d 626f 6c3c 2f63  ematic symbol</c
00002b0: 6f6d 6d65 6e74 3e0a 2020 2020 3c63 6f6d  omment>.    <com
00002c0: 6d65 6e74 2078 6d6c 3a6c 616e 673d 2266  ment xml:lang="f
00002d0: 7222 3e53 6368 e96d 6120 6465 2073 796d  r">Sch.ma de sym
00002e0: 626f 6c65 2067 4544 413c 2f63 6f6d 6d65  bole gEDA</comme
00002f0: 6e74 3e0a 2020 2020 3c63 6f6d 6d65 6e74  nt>.    <comment
0000300: 2078 6d6c 3a6c 616e 673d 2266 725f 4652   xml:lang="fr_FR
0000310: 223e 5363 68e9 6d61 2064 6520 7379 6d62  ">Sch.ma de symb
0000320: 6f6c 6520 6745 4441 3c2f 636f 6d6d 656e  ole gEDA</commen
0000330: 743e 0a20 2020 203c 636f 6d6d 656e 7420  t>.    <comment
0000340: 786d 6c3a 6c61 6e67 3d22 6672 223e 5363  xml:lang="fr">Sc
0000350: 68e9 6d61 2064 6520 7379 6d62 6f6c 6520  h.ma de symbole
0000360: 6745 4441 3c2f 636f 6d6d 656e 743e 0a20  gEDA</comment>.
0000370: 2020 203c 676c 6f62 2070 6174 7465 726e     <glob pattern
0000380: 3d22 2a2e 7379 6d22 2f3e 0a20 2020 203c  ="*.sym"/>.    <
0000390: 6d61 6769 6320 7072 696f 7269 7479 3d22  magic priority="
00003a0: 3730 223e 0a20 2020 2020 203c 6d61 7463  70">.      <matc
00003b0: 6820 7661 6c75 653d 2276 2032 3030 2220  h value="v 200"
00003c0: 7479 7065 3d22 7374 7269 6e67 2220 6f66  type="string" of
00003d0: 6673 6574 3d22 3022 2f3e 0a20 2020 203c  fset="0"/>.    <
00003e0: 2f6d 6167 6963 3e0a 2020 3c2f 6d69 6d65  /magic>.  </mime
00003f0: 2d74 7970 653e 0a20 203c 6d69 6d65 2d74  -type>.  <mime-t
0000400: 7970 6520 7479 7065 3d22 6170 706c 6963  ype type="applic
0000410: 6174 696f 6e2f 782d 6765 6461 2d67 7363  ation/x-geda-gsc
0000420: 6832 7063 622d 7072 6f6a 6563 7422 3e0a  h2pcb-project">.
0000430: 2020 2020 3c73 7562 2d63 6c61 7373 2d6f      <sub-class-o
0000440: 6620 7479 7065 3d22 7465 7874 2f70 6c61  f type="text/pla
0000450: 696e 222f 3e0a 2020 2020 3c63 6f6d 6d65  in"/>.    <comme
0000460: 6e74 3e67 4544 4120 6773 6368 3270 6362  nt>gEDA gsch2pcb
0000470: 2070 726f 6a65 6374 3c2f 636f 6d6d 656e   project</commen
0000480: 743e 0a20 2020 203c 636f 6d6d 656e 7420  t>.    <comment
0000490: 786d 6c3a 6c61 6e67 3d22 6672 223e 5072  xml:lang="fr">Pr
00004a0: 6f6a 6574 2067 7363 6832 7063 6220 6745  ojet gsch2pcb gE
00004b0: 4441 3c2f 636f 6d6d 656e 743e 0a20 2020  DA</comment>.
00004c0: 203c 636f 6d6d 656e 7420 786d 6c3a 6c61   <comment xml:la
00004d0: 6e67 3d22 6672 5f46 5222 3e50 726f 6a65  ng="fr_FR">Proje
00004e0: 7420 6773 6368 3270 6362 2067 4544 413c  t gsch2pcb gEDA<
00004f0: 2f63 6f6d 6d65 6e74 3e0a 2020 2020 3c63  /comment>.    <c
0000500: 6f6d 6d65 6e74 2078 6d6c 3a6c 616e 673d  omment xml:lang=
0000510: 2266 7222 3e50 726f 6a65 7420 6773 6368  "fr">Projet gsch
0000520: 3270 6362 2067 4544 413c 2f63 6f6d 6d65  2pcb gEDA</comme
0000530: 6e74 3e0a 2020 2020 3c67 6c6f 6220 7061  nt>.    <glob pa
0000540: 7474 6572 6e3d 222a 2e67 7363 6832 7063  ttern="*.gsch2pc
0000550: 6222 2f3e 0a20 2020 203c 676c 6f62 2070  b"/>.    <glob p
0000560: 6174 7465 726e 3d22 2a2e 7072 6a22 2f3e  attern="*.prj"/>
0000570: 0a20 203c 2f6d 696d 652d 7479 7065 3e0a  .  </mime-type>.
0000580: 3c2f 6d69 6d65 2d69 6e66 6f3e 0a         </mime-info>.
dhp@uranus ~ $
Comment 5 DEMAINE Benoît-Pierre, aka DoubleHP 2010-07-04 13:14:10 UTC
Created attachment 237443 [details]
/var/log/portage/sci-electronics:geda-1.6.1:20100626-025732.log

Is this enough ? ... i add the build log just in case ...
Comment 6 DEMAINE Benoît-Pierre, aka DoubleHP 2010-07-04 13:15:50 UTC
Note: I do 99% of my emerges in an Eterm; Eterm does not support UTF8. The rest of the system does (console, X ... )

uranus ~ # locale
LANG=en_GB.ISO-8859-15
LC_CTYPE="en_GB.ISO-8859-15"
LC_NUMERIC="en_GB.ISO-8859-15"
LC_TIME="en_GB.ISO-8859-15"
LC_COLLATE="en_GB.ISO-8859-15"
LC_MONETARY="en_GB.ISO-8859-15"
LC_MESSAGES="en_GB.ISO-8859-15"
LC_PAPER="en_GB.ISO-8859-15"
LC_NAME="en_GB.ISO-8859-15"
LC_ADDRESS="en_GB.ISO-8859-15"
LC_TELEPHONE="en_GB.ISO-8859-15"
LC_MEASUREMENT="en_GB.ISO-8859-15"
LC_IDENTIFICATION="en_GB.ISO-8859-15"
LC_ALL=en_GB.ISO-8859-15
uranus ~ #

Maybe this can impact ? no clue. Done for today. Good luck.
Comment 7 Thomas Beierlein gentoo-dev 2010-07-04 14:21:44 UTC
(In reply to comment #4 and #6)
The coding in the source fr.po file is in utf-8. But on your side the characters gets finally encoded in latin-1. (So maybe you have some problem in your unicode infrastructure?).

> Note: I do 99% of my emerges in an Eterm; Eterm does not support UTF8. The rest
> of the system does (console, X ... )

Just checked Eterm with and without unicode support. That seems not to be the problem.


Comment 8 DEMAINE Benoît-Pierre, aka DoubleHP 2010-07-04 14:38:44 UTC
Eterme *never* supports UTF8, in fact, Eterm never supports multibyte (there is an optionnal feature to support it, but it's heavily broken).

when emerging in UTF8 xterm, i get a clean merge (no strange warning).
export LANG="en_GB.utf8"
export LC_ALL="en_GB.utf8"

Remerging in ISO Eterm, i get them back.
LANG=en_GB.ISO-8859-15
LC_ALL=en_GB.ISO-8859-15

... thus, of course, i try an ISO xterm :)
LANG=en_GB.ISO-8859-15
LC_ALL=en_GB.ISO-8859-15
and i get the warning.

This means ... emerge does not sanitise environment, and, the compile stages are affected by "user" (root) env.

Here is what i get after compile in UTF8 env:

uranus ~ # xxd /usr/share/mime/packages/libgeda.xml
0000000: 3c3f 786d 6c20 7665 7273 696f 6e3d 2231  <?xml version="1
0000010: 2e30 2220 656e 636f 6469 6e67 3d22 7574  .0" encoding="ut
0000020: 662d 3822 3f3e 0a3c 6d69 6d65 2d69 6e66  f-8"?>.<mime-inf
0000030: 6f20 786d 6c6e 733d 2268 7474 703a 2f2f  o xmlns="http://
0000040: 7777 772e 6672 6565 6465 736b 746f 702e  www.freedesktop.
0000050: 6f72 672f 7374 616e 6461 7264 732f 7368  org/standards/sh
0000060: 6172 6564 2d6d 696d 652d 696e 666f 223e  ared-mime-info">
0000070: 0a20 203c 6d69 6d65 2d74 7970 6520 7479  .  <mime-type ty
0000080: 7065 3d22 6170 706c 6963 6174 696f 6e2f  pe="application/
0000090: 782d 6765 6461 2d73 6368 656d 6174 6963  x-geda-schematic
00000a0: 223e 0a20 2020 203c 7375 622d 636c 6173  ">.    <sub-clas
00000b0: 732d 6f66 2074 7970 653d 2274 6578 742f  s-of type="text/
00000c0: 706c 6169 6e22 2f3e 0a20 2020 203c 636f  plain"/>.    <co
00000d0: 6d6d 656e 743e 6745 4441 2063 6972 6375  mment>gEDA circu
00000e0: 6974 2073 6368 656d 6174 6963 3c2f 636f  it schematic</co
00000f0: 6d6d 656e 743e 0a20 2020 203c 636f 6d6d  mment>.    <comm
0000100: 656e 7420 786d 6c3a 6c61 6e67 3d22 6672  ent xml:lang="fr
0000110: 223e 5363 68c3 a96d 6120 6465 2063 6972  ">Sch..ma de cir
0000120: 6375 6974 2067 4544 413c 2f63 6f6d 6d65  cuit gEDA</comme
0000130: 6e74 3e0a 2020 2020 3c63 6f6d 6d65 6e74  nt>.    <comment
0000140: 2078 6d6c 3a6c 616e 673d 2266 725f 4652   xml:lang="fr_FR
0000150: 223e 5363 68c3 a96d 6120 6465 2063 6972  ">Sch..ma de cir
0000160: 6375 6974 2067 4544 413c 2f63 6f6d 6d65  cuit gEDA</comme
0000170: 6e74 3e0a 2020 2020 3c63 6f6d 6d65 6e74  nt>.    <comment
0000180: 2078 6d6c 3a6c 616e 673d 2266 7222 3e53   xml:lang="fr">S
0000190: 6368 c3a9 6d61 2064 6520 6369 7263 7569  ch..ma de circui
00001a0: 7420 6745 4441 3c2f 636f 6d6d 656e 743e  t gEDA</comment>
00001b0: 0a20 2020 203c 676c 6f62 2070 6174 7465  .    <glob patte
00001c0: 726e 3d22 2a2e 7363 6822 2f3e 0a20 2020  rn="*.sch"/>.   
00001d0: 203c 6d61 6769 6320 7072 696f 7269 7479   <magic priority
00001e0: 3d22 3730 223e 0a20 2020 2020 203c 6d61  ="70">.      <ma
00001f0: 7463 6820 7661 6c75 653d 2276 2032 3030  tch value="v 200
0000200: 2220 7479 7065 3d22 7374 7269 6e67 2220  " type="string" 
0000210: 6f66 6673 6574 3d22 3022 2f3e 0a20 2020  offset="0"/>.   
0000220: 203c 2f6d 6167 6963 3e0a 2020 3c2f 6d69   </magic>.  </mi
0000230: 6d65 2d74 7970 653e 0a20 203c 6d69 6d65  me-type>.  <mime
0000240: 2d74 7970 6520 7479 7065 3d22 6170 706c  -type type="appl
0000250: 6963 6174 696f 6e2f 782d 6765 6461 2d73  ication/x-geda-s
0000260: 796d 626f 6c22 3e0a 2020 2020 3c73 7562  ymbol">.    <sub
0000270: 2d63 6c61 7373 2d6f 6620 7479 7065 3d22  -class-of type="
0000280: 7465 7874 2f70 6c61 696e 222f 3e0a 2020  text/plain"/>.  
0000290: 2020 3c63 6f6d 6d65 6e74 3e67 4544 4120    <comment>gEDA 
00002a0: 7363 6865 6d61 7469 6320 7379 6d62 6f6c  schematic symbol
00002b0: 3c2f 636f 6d6d 656e 743e 0a20 2020 203c  </comment>.    <
00002c0: 636f 6d6d 656e 7420 786d 6c3a 6c61 6e67  comment xml:lang
00002d0: 3d22 6672 223e 5363 68c3 a96d 6120 6465  ="fr">Sch..ma de
00002e0: 2073 796d 626f 6c65 2067 4544 413c 2f63   symbole gEDA</c
00002f0: 6f6d 6d65 6e74 3e0a 2020 2020 3c63 6f6d  omment>.    <com
0000300: 6d65 6e74 2078 6d6c 3a6c 616e 673d 2266  ment xml:lang="f
0000310: 725f 4652 223e 5363 68c3 a96d 6120 6465  r_FR">Sch..ma de
0000320: 2073 796d 626f 6c65 2067 4544 413c 2f63   symbole gEDA</c
0000330: 6f6d 6d65 6e74 3e0a 2020 2020 3c63 6f6d  omment>.    <com
0000340: 6d65 6e74 2078 6d6c 3a6c 616e 673d 2266  ment xml:lang="f
0000350: 7222 3e53 6368 c3a9 6d61 2064 6520 7379  r">Sch..ma de sy
0000360: 6d62 6f6c 6520 6745 4441 3c2f 636f 6d6d  mbole gEDA</comm
0000370: 656e 743e 0a20 2020 203c 676c 6f62 2070  ent>.    <glob p
0000380: 6174 7465 726e 3d22 2a2e 7379 6d22 2f3e  attern="*.sym"/>
0000390: 0a20 2020 203c 6d61 6769 6320 7072 696f  .    <magic prio
00003a0: 7269 7479 3d22 3730 223e 0a20 2020 2020  rity="70">.     
00003b0: 203c 6d61 7463 6820 7661 6c75 653d 2276   <match value="v
00003c0: 2032 3030 2220 7479 7065 3d22 7374 7269   200" type="stri
00003d0: 6e67 2220 6f66 6673 6574 3d22 3022 2f3e  ng" offset="0"/>
00003e0: 0a20 2020 203c 2f6d 6167 6963 3e0a 2020  .    </magic>.  
00003f0: 3c2f 6d69 6d65 2d74 7970 653e 0a20 203c  </mime-type>.  <
0000400: 6d69 6d65 2d74 7970 6520 7479 7065 3d22  mime-type type="
0000410: 6170 706c 6963 6174 696f 6e2f 782d 6765  application/x-ge
0000420: 6461 2d67 7363 6832 7063 622d 7072 6f6a  da-gsch2pcb-proj
0000430: 6563 7422 3e0a 2020 2020 3c73 7562 2d63  ect">.    <sub-c
0000440: 6c61 7373 2d6f 6620 7479 7065 3d22 7465  lass-of type="te
0000450: 7874 2f70 6c61 696e 222f 3e0a 2020 2020  xt/plain"/>.    
0000460: 3c63 6f6d 6d65 6e74 3e67 4544 4120 6773  <comment>gEDA gs
0000470: 6368 3270 6362 2070 726f 6a65 6374 3c2f  ch2pcb project</
0000480: 636f 6d6d 656e 743e 0a20 2020 203c 636f  comment>.    <co
0000490: 6d6d 656e 7420 786d 6c3a 6c61 6e67 3d22  mment xml:lang="
00004a0: 6672 223e 5072 6f6a 6574 2067 7363 6832  fr">Projet gsch2
00004b0: 7063 6220 6745 4441 3c2f 636f 6d6d 656e  pcb gEDA</commen
00004c0: 743e 0a20 2020 203c 636f 6d6d 656e 7420  t>.    <comment 
00004d0: 786d 6c3a 6c61 6e67 3d22 6672 5f46 5222  xml:lang="fr_FR"
00004e0: 3e50 726f 6a65 7420 6773 6368 3270 6362  >Projet gsch2pcb
00004f0: 2067 4544 413c 2f63 6f6d 6d65 6e74 3e0a   gEDA</comment>.
0000500: 2020 2020 3c63 6f6d 6d65 6e74 2078 6d6c      <comment xml
0000510: 3a6c 616e 673d 2266 7222 3e50 726f 6a65  :lang="fr">Proje
0000520: 7420 6773 6368 3270 6362 2067 4544 413c  t gsch2pcb gEDA<
0000530: 2f63 6f6d 6d65 6e74 3e0a 2020 2020 3c67  /comment>.    <g
0000540: 6c6f 6220 7061 7474 6572 6e3d 222a 2e67  lob pattern="*.g
0000550: 7363 6832 7063 6222 2f3e 0a20 2020 203c  sch2pcb"/>.    <
0000560: 676c 6f62 2070 6174 7465 726e 3d22 2a2e  glob pattern="*.
0000570: 7072 6a22 2f3e 0a20 203c 2f6d 696d 652d  prj"/>.  </mime-
0000580: 7479 7065 3e0a 3c2f 6d69 6d65 2d69 6e66  type>.</mime-inf
0000590: 6f3e 0a                                  o>.
uranus ~ # 

diff on xdd output does not work; want a diff on fiole themself ?

In fact, IMHO, this is again a dup of bug 253467 . But we need a new fix.
Comment 9 DEMAINE Benoît-Pierre, aka DoubleHP 2010-07-04 14:44:22 UTC
An other approcha: many bugs complaint that einfo and ewarns using the special char "\t" does not always output nicely; the deep original issue may be common. Just an idea.

bug 95259 seem still open.

Maybe the contexte of emerge affects the type of output file and encoding ?
Comment 10 Thomas Beierlein gentoo-dev 2010-07-04 15:36:56 UTC
(In reply to comment #8)
> when emerging in UTF8 xterm, i get a clean merge (no strange warning).
> export LANG="en_GB.utf8"
> export LC_ALL="en_GB.utf8"
> 
> Remerging in ISO Eterm, i get them back.
> LANG=en_GB.ISO-8859-15
> LC_ALL=en_GB.ISO-8859-15
> 
> ... thus, of course, i try an ISO xterm :)
> LANG=en_GB.ISO-8859-15
> LC_ALL=en_GB.ISO-8859-15
> and i get the warning.

So well, that means it is no problem of the geda package but on the settings of your LC_ variables. Well.


> Here is what i get after compile in UTF8 env:
> 
> uranus ~ # xxd /usr/share/mime/packages/libgeda.xml
....
> 00000f0: 6d6d 656e 743e 0a20 2020 203c 636f 6d6d  mment>.    <comm
> 0000100: 656e 7420 786d 6c3a 6c61 6e67 3d22 6672  ent xml:lang="fr
> 0000110: 223e 5363 68c3 a96d 6120 6465 2063 6972  ">Sch..ma de cir
> 0000120: 6375 6974 2067 4544 413c 2f63 6f6d 6d65  cuit gEDA</comme
> 0000130: 6e74 3e0a 2020 2020 3c63 6f6d 6d65 6e74  nt>.    <comment
...
Just see the hexcodes in line 3. The 'c3 a9' is the wanted utf-8 character. In your other version at the same position you find an 'e9' which is the same character in latin-1.

> This means ... emerge does not sanitise environment, and, the compile stages
> are affected by "user" (root) env.
> 

So please file a corresponding bug with the proper summary and give your problem with geda as an example. 

Thanks for your help.
Comment 11 DEMAINE Benoît-Pierre, aka DoubleHP 2010-07-04 15:55:58 UTC
see bug 326887
Comment 12 Harald van Dijk (RETIRED) gentoo-dev 2010-07-04 19:21:04 UTC
(In reply to comment #10)
> > ... thus, of course, i try an ISO xterm :)
> > LANG=en_GB.ISO-8859-15
> > LC_ALL=en_GB.ISO-8859-15
> > and i get the warning.
> 
> So well, that means it is no problem of the geda package but on the settings of
> your LC_ variables. Well.

No, that is a bug in geda. Those LANG settings are perfectly valid.

> > This means ... emerge does not sanitise environment, and, the compile stages
> > are affected by "user" (root) env.
> 
> So please file a corresponding bug with the proper summary and give your
> problem with geda as an example. 

This is the bug for that. emerge isn't supposed to clear LANG/LC_*. Packages are supposed to do that, where necessary.
Comment 13 DEMAINE Benoît-Pierre, aka DoubleHP 2010-07-05 00:46:05 UTC
If package need langage specific stuff, we have LANGAGE variable declared in make.conf; and IMHO, the locales can be ... "erased".
Comment 14 Michael Weber (RETIRED) gentoo-dev 2012-05-25 13:49:40 UTC
I couldn't reproduce the prolem, this version is gone.

Please report back, if the issue still exists on your system with version 1.6.2.

+  25 May 2012; Michael Weber <xmw@gentoo.org> -geda-1.6.1.ebuild:
+  Remove old version
+