Home page logo

nmap-dev logo Nmap Development mailing list archives

Re: nmap bug report
From: David Fifield <david () bamsoftware com>
Date: Sat, 10 May 2008 14:07:27 -0600

On Sat, May 10, 2008 at 09:23:35PM +0800, ka hoi ng wrote:
Version: 4.62
OS: Windows XP Pro Service Pack 3
Symptom: Can't Open File Saved by non-english OS (e.g. Traditional Chinese)
Gtk-ERROR **.file:../../../gtk+/gtk/gtktextsegment.c: line 196
(_gtk_char_segment_new): assertion failed (gtk_text_byte_beings_utf8_char
(text)) absorting

Attached was two scan result using the same option but on different language
of Windows XP (TC=Traditional Chinese, EN=English)

Thanks for your report. I can verify that the EN_OS.usr file opens and
the TC_OS.usr causes a crash. Both files are written with an XML
declaration that declares an ISO-8859-1 encoding:

    <?xml version="1.0" encoding="iso-8859-1"?>

That comes from these few lines in zenmapCore/NmapParser.py:

    def write_xml(self, xml_file):
        xml_file = self._verify_file(xml_file)
        self.write_parser = XMLGenerator(xml_file)

where the encoding of the XMLGenerator defaults to "iso-8859-1" (see

I think it's the time zone in the XML output that's not encoded in
ISO-8859-1. Maybe this can be fixed just by changing the output

Run your scan again, like this:

    nmap -T Aggressive -sV -n -O -v -oX TC_OS.xml

and then try to open the TC_OS.xml file in Zenmap. If it works, then the
problem probably lies with Zenmap rather than Nmap.

David Fifield

Sent through the nmap-dev mailing list
Archived at http://SecLists.Org

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]