Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130910 - links-2.1_pre20 error loading directory with % in name
Summary: links-2.1_pre20 error loading directory with % in name
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High trivial (vote)
Assignee: Marcelo Goes (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-22 17:13 UTC by Loui
Modified: 2006-10-18 17:43 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Loui 2006-04-22 17:13:12 UTC
I have a directory named 'foo%bar' with a text file named 'foo'

In the command line if I type:
links foo%bar/foo

links will start and display the message:

Error loading
file:///home/louipc25/foo%bar/foo
No such file or directory

I can still view the file by typing:
links .

then browsing to the foo%bar/foo

ALWAYS reproducable

Portage 2.1_pre7-r5 (default-linux/x86/2006.0, gcc-3.4.4, glibc-2.3.5-r2, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://adelie.polymtl.ca/ ftp://gentoo.arcticnetwork.ca/pub/gentoo/ http://gentoo.arcticnetwork.ca/ http://gentoo.mirrored.ca/ ftp://gentoo.mirrored.ca/ http://gentoo.osuosl.org/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://trumpetti.atm.tut.fi/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ http://cdot.senecac.on.ca/software/gentoo/"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
USE="x86 X aac aim alsa apache2 apm avi berkdb bitmap-fonts bzip2 cdinstall cdparanoia cdr cjk clamav cli crypt ctype cups dba dri dvd dvdr dvdread emboss encode esd expat fastbuild ffmpeg foomaticdb force-cgi-redirect fortran ftp gd gdbm gif gphoto2 gpm gstreamer gtk gtk2 imlib ipv6 isdnlog jabber jack jpeg libg++ libwww memlimit mikmod mime mmx mp3 mpeg msn mule mysql ncurses nls nptl ogg openal opengl oss pam pcre pdf pdflib perl php png posix pppd python quicktime readline scanner sdl session simplexml soap sockets spell spl sse ssl tcpd tokenizer truetype truetype-fonts type1-fonts udev unicode vcd videos vorbis win32codecs wxwindows xml xmms xsl xv yahoo zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
Comment 1 Loui 2006-04-22 17:18:53 UTC
Ah I forgot to mention that it seems to have something to do with the percentage sign (%) in the directory name. Any directory with the format foo%bar.
Comment 2 Marcelo Goes (RETIRED) gentoo-dev 2006-04-23 10:47:15 UTC
Hmmm, sorry, I can't quite reproduce it here. Is this a links only problem?
You may want to contact upstream about it.
Comment 3 Loui 2006-04-23 16:24:17 UTC
Yeah this is concerning links, but I figured that you folks would pass the bug along if needed eh?
Comment 4 Marcelo Goes (RETIRED) gentoo-dev 2006-04-23 16:27:58 UTC
I can, I just thought maybe you would like to report it yourself, since I cannot reproduce this at all...

The upstream developers e-mails are listed at the bottom of this page:
http://links.twibright.com/development.php
Comment 5 Loui 2006-04-23 18:08:37 UTC
Alright I passed it on.
Comment 6 Mikulas Patocka 2006-06-03 13:13:56 UTC
I don't know if I should fix it. Command line is supposed to take URL, not filename, and in URL '%' followed by hex code is used to write non-printable charactes.

So foo%bar really tries to open file "FOO" Character 0xBA "R".

BTW. If someone writes links file.html#boo, what do you expect? --- should it interpret as URL --- open file.html and go to location "boo" or should it interpret as filename --- open file "file.html#boo". I think the first is more useful.
Comment 7 Loui 2006-06-11 06:12:25 UTC
(In reply to comment #6)
> BTW. If someone writes links file.html#boo, what do you expect? --- should it
> interpret as URL --- open file.html and go to location "boo" or should it
> interpret as filename --- open file "file.html#boo".

Yeah, the first makes more sense in the end. Is it possible to switch behaviour with a command line flag? (Don't parse URL)
Comment 8 Marcelo Goes (RETIRED) gentoo-dev 2006-10-18 17:43:39 UTC
Leaving this to upstream.