aMule Forum

English => en_Bugs => Topic started by: OldFrog on May 03, 2006, 07:29:14 AM

Title: Error loading ipfilter.dat
Post by: OldFrog on May 03, 2006, 07:29:14 AM
I have got this error when loading ipfilter.dat

Quote
2006-05-03 07:25:31: Erreur: Failed to convert file contents to Unicode.
2006-05-03 07:25:31: Error loading file ipfilter.dat '/home/louis/.aMule/ipfilter.dat', can't open the file
I have translated back the messages to english

This happened for quite a few days
Title: Re: Error loading ipfilter.dat
Post by: OldFrog on May 17, 2006, 07:59:35 PM
Still the same message, yet I changed the url, and refreshed in preferences. Any idea ?

Code: [Select]
....
(snip some coments)
....
000.000.000.000-002.255.255.255,060,[BG]Invalid, [BG]Not declared
003.000.000.000-003.255.255.255,110,[L1]General Electric Company
004.000.025.146-004.000.025.148,110,[L1]s0-0.ciscoseattle.bbnplanet.net
004.000.026.014-004.000.029.024,110,[L1]p1-0.cisco.bbnplanet.net
004.002.144.032-004.002.144.047,120,[L2]International Generating Co. (Intergen)
004.002.144.064-004.002.144.095,110,[L1]Cisco Systems, Inc
004.002.144.224-004.002.144.231,110,[L1]Drug Enforcement Adm
004.002.144.248-004.002.144.255,110,[L1]US Dept of Treasury-TIGTA
004.002.145.000-004.002.145.063,120,[L2]HTS Engineering, LTD
004.002.145.096-004.002.145.127,120,[L2]ITS Caleb Brett
004.002.145.224-004.002.145.239,110,[L1]City of League City
004.002.153.000-004.002.153.007,110,[L1]Verizon/Intel-San Jose
004.002.153.032-004.002.153.063,110,[L1]Cisco Systems, Inc
004.002.153.064-004.002.153.127,120,[L2]Paramit Corporation
004.002.160.064-004.002.160.079,110,[L1]Werner Media
....

Content looks normal, yet
Title: Re: Error loading ipfilter.dat
Post by: TimDzang on May 18, 2006, 04:53:30 PM
The encoding of a file ipfilter.dat is not formally defined.
eMule assumes ISO-8859-1, however aMule uses UTF-8.

Code pages ISO-8859-1 and UTF-8 coincide only for the first 127 symbols (ASCII).

Some lines correct in coding ISO, are forbidden in coding UTF-8. At reading a file ipfilter.dat, they cannot be converted in UTF-16 (an internal format).
Title: Re: Error loading ipfilter.dat
Post by: OldFrog on May 19, 2006, 09:02:30 AM
Maybe, but as I have no way to change that, I consider it a bug.

This one works (There are no comments in it) but it's very short (3MB) and it's old stuff

http://www.emule-zenzone.com/modules/pbboard/files/ipfilter.dat

I get the error with thiese ones

http://emulepawcio.sourceforge.net/ipfilter.dat
http://puzzle.dl.sourceforge.net/sourceforge/emulepawcio/ipfilter.dat

and with some other ones.
Title: Re: Error loading ipfilter.dat
Post by: TimDzang on May 20, 2006, 05:54:48 PM
IPFilter.cpp
Code: [Select]
void LoadFromFile(const wxString& file)
{
  [skip]
  wxTextFile readFile(file);
  if (readFile.Open(wxConvISO8859_1)) {
  [skip]

I think it should help, but I did not check this.


PS. You can try ipfilter.dat from here (~11MB):http://openmedia.info (http://www.openmedia.info)