Bug 82145

Summary: non-iso1 html references are not resolved
Product: [Applications] konqueror Reporter: Andrei A. Lomov <lomov>
Component: khtmlAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Andrei A. Lomov 2004-05-25 11:14:17 UTC
Version:            (using KDE KDE 3.2.2)
Installed from:    Unspecified Linux
OS:                Linux

Konqueror (khtml) does not resolve html references to localhost if the 
reference path contains non-iso1 names (mozilla works fine)
Comment 1 Stephan Kulow 2004-05-25 11:53:57 UTC
example? And do you have libidn installed as /usr/lib/libidn.so?
Comment 2 Andrei A. Lomov 2004-05-25 12:50:25 UTC
In khtml, the problem is to enter 1.htm from index.htm :


$ tree 1

1
`--Тест html
   |--1.htm
   `--index.htm


$ cat 1.html

<html>

<head>
<meta name="keywords" content="xxx">
<link rel="stylesheet" type="text/css" href="style5.css">
<title>оЮБЕК оепбши</title>
</head>

<body leftmargin="70" marginwidth="70" background="2-back.gif">

<h2>ХЯРНПХВЕЯЙХИ ОНПРПЕР</h2>

<h3>бЮКЕПХИ Х яБЕРКЮМЮ <br>
пшфнбш</h3>

<h1>оЮБЕК оепбши</h1>
</body>
</html>


$ cat index.html

<html>
<head>
<link href="his.css" rel="stylesheet"><title>&quot;хЯРНПХЪ&quot;, ╧ 24/2003</title>
</head><body topmargin=0><table border=0 cellspacing=0 cellpadding=0 width=620 align=center bgcolor=white>
<tr><td>&nbsp;</td></tr>
<tr><td align=center><b> &quot;хЯРНПХЪ&quot; ╧ 24(696) / 23-30 ХЧМЪ 2003</b></td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td>
<table border=0 cellspacing=0 cellpadding=10>
<tr><td>
<b>хЯРНПХВЕЯЙХИ ОНПРПЕР</b>
<ul>
<li><a href="1.htm"><i>бЮКЕПХИ Х яБЕРКЮМЮ пшфнбш</i>. оЮБЕК оЕПБШИ</a></li>
</ul>
</td></tr>
</table>
</td></tr>
</table>
</body>
</html>
Comment 3 Stephan Kulow 2004-05-25 14:55:51 UTC
hmm? it works fine here. and 1.htm isn't really non-iso1
Comment 4 Andrei A. Lomov 2004-05-25 18:14:56 UTC
Dirname
"Тест html/" is koi8-r and this is critical
Comment 5 Waldo Bastian 2004-06-01 12:08:47 UTC
Which locale are you using?
Comment 6 Andrei A. Lomov 2004-06-02 07:41:48 UTC
[andrei@main andrei]$ locale
LANG=ru_RU.KOI8-R
LC_CTYPE="ru_RU.KOI8-R"
LC_NUMERIC="ru_RU.KOI8-R"
LC_TIME="ru_RU.KOI8-R"
LC_COLLATE="ru_RU.KOI8-R"
LC_MONETARY="ru_RU.KOI8-R"
LC_MESSAGES="ru_RU.KOI8-R"
LC_PAPER="ru_RU.KOI8-R"
LC_NAME="ru_RU.KOI8-R"
LC_ADDRESS="ru_RU.KOI8-R"
LC_TELEPHONE="ru_RU.KOI8-R"
LC_MEASUREMENT="ru_RU.KOI8-R"
LC_IDENTIFICATION="ru_RU.KOI8-R"
LC_ALL=
[andrei@main andrei]$
Comment 7 Andrei A. Lomov 2004-06-10 11:06:31 UTC
! The problem arises only when I switch 
View -> Encoding -> cp1251 (e.g.)
to read the text in index.htm

After that khtml does not follow the link!
Comment 8 Tommi Tervo 2005-10-12 13:53:56 UTC
*** Bug 84138 has been marked as a duplicate of this bug. ***
Comment 9 illogic-al 2007-01-06 15:58:10 UTC

*** This bug has been marked as a duplicate of 49523 ***