Summary: | yelp 2.14.1 broken ampersand parsing | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jie Luo <clotho67> |
Component: | [OLD] GNOME | Assignee: | Gentoo Linux Gnome Desktop Team <gnome> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | dshanker, ian |
Priority: | High | ||
Version: | 2006.0 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 119872 | ||
Attachments: |
Requested /usr/share/yelp/info.xml
My info.xml New ampersand escaping patch |
Description
Jie Luo
2006-05-06 22:40:16 UTC
Curious, can you attach info.xml to this bug. Also, have you tried to re-emerge yelp and running it again. I got the same error, but re-emerging yelp fixed it for me. (In reply to comment #2) > I got the same error, but re-emerging yelp fixed it for me. Scrub that. I still get the error, there was just a 5 second delay before it appeared! Here is my emerge --info. I will attach my /usr/share/yelp/info.xml file. Gentoo Base System version 1.12.1 Portage 2.1 (default-linux/x86/no-nptl/2.4, gcc-4.1.1/vanilla, glibc-2.3.6-r4, 2.6.16-ija1 i686) ================================================================= System uname: 2.6.16-ija1 i686 AMD Duron(tm) processor dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: 0.4.2-r1 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r2 sys-devel/gcc-config: 2.0.0_rc1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.4.26-r1 ACCEPT_KEYWORDS="x86 ~amd64 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-march=athlon -O2 -pipe" DISTDIR="/work/portage/distfiles" FEATURES="autoconfig confcache distlocks metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" LANG="en_GB.UTF-8" LINGUAS="en_GB" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X aac alsa apm arts avi berkdb bitmap-fonts bzip2 cdr cjk cli crypt cups curl doc dri eds emboss encode expat firefox flac flash foomaticdb fortran gdbm gif glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml idn imagemagick imlib ipv6 isdnlog java jpeg kde lcms ldap libg++ libwww mad mikmod mmx mng motif mozsvg mp3 mpeg ncurses nls no-helper nsplugin offensive ogg opengl oss pam pcre pdflib perl plotutils png pppd python qemu-fast qt quicktime readline reflection samba sdl session slang softmmu spell spl ssl svg tcltk tcpd threads tiff truetype truetype-fonts type1-fonts unicode usb vorbis win32codecs xine xml xmms xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_en_GB userland_GNU video_cards_radeon video_cards_ati video_cards_vesa video_cards_fbdev" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS Created attachment 89126 [details]
Requested /usr/share/yelp/info.xml
(In reply to comment #1) > Curious, can you attach info.xml to this bug. > > Also, have you tried to re-emerge yelp and running it again. > Sorry for late reply. I re-emerge yelp several times and also clear conf files in home dir, but it don't help. This error still occur but a little different. /usr/share/yelp/info.xml:0: error : unterminated entity reference UML for Emacs /usr/share/yelp/info.xml:0: error : unterminated entity reference development tools Unmatched element: SM Unmatched element: SM Unmatched element: SM Unmatched element: SM Unmatched element: SM Unmatched element: SM Unmatched element: SM Unmatched element: SM Unmatched element: SM Unmatched element: SM Unmatched element: SM Unmatched element: SM Unmatched element: SM Unmatched element: SM Unmatched element: SM Unmatched element: SM Unmatched element: SM Created attachment 89289 [details]
My info.xml
This is my info.xml
fixed in yelp-2.14.2-r1 (In reply to comment #7) > fixed in yelp-2.14.2-r1 > Not yet fixed, when I update to yelp-2.14.2-r1, it still print following message: /usr/share/yelp/info.xml:0: error : unterminated entity reference UML for Emacs It still not completely fixed, I will try to fix it. This is the entries in info that cause the bug: Programming & development tools * GDBM: (gdbm). The GNU database manager. * cogre: (cogre). Graphs & UML for Emacs It seems that ampersand is not handled correctly. The first one split into Programming and development tools in yelp 2.14.2. The patch in portage fixed this, but the second one still not being fixed. In yelp, it displays as cogre Graphs and the string behind ampersand is not shown. It also print error message in the console as following. /usr/share/yelp/info.xml:0: error : unterminated entity reference UML for Emacs Created attachment 90731 [details, diff]
New ampersand escaping patch
This patch fix error in parse xml when ampersand also exists in info description.
Tested in my machine.
I have a question with the way to deal with ampersand. When we find ampersand also used in other field of info dir, we should update our patch to resolve it. Is there any way to completely resolve similar problems? As yelp is update to 2.16.x, this is no longer valid. |