This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | UnicodeDecodeError pop-up while entering \x code | ||
---|---|---|---|
Product: | python | Reporter: | vincentvdl |
Component: | Editor | Assignee: | vincentvdl |
Status: | STARTED --- | ||
Severity: | normal | CC: | Jenselme |
Priority: | P4 | ||
Version: | 8.1 | ||
Hardware: | PC | ||
OS: | Windows 8 x64 | ||
See Also: | https://netbeans.org/bugzilla/show_bug.cgi?id=158693 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 251765 | ||
Bug Blocks: | |||
Attachments: | Exception UnicodeDecodeError |
Description
vincentvdl
2015-04-07 18:05:28 UTC
Hi Vincent, I'm not seeing any errors while replicating your test. I entered test = '\u' character by character and received no errors, using this environment: Product Version: NetBeans IDE Dev (Build 201504040001) Java: 1.8.0_31; Java HotSpot(TM) Client VM 25.31-b07 Runtime: Java(TM) SE Runtime Environment 1.8.0_31-b13 System: Windows 8 version 6.2 running on x86; Cp1252; en_US (nb) Python: Jython 2.5.1 Please make sure you are using a recent DEVELOPMENT version of NetBeans IDE from http://bits.netbeans.org/download/trunk/nightly/latest/ AND with Python plugin installed from "Latest Build" update center at http://bits.netbeans.org/dev/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/updates.xml.gz Created attachment 153087 [details]
Exception UnicodeDecodeError
UPDATE: Although '\u' produced no anomaly for me, just for sanity sake, I tested '\a' through '\z'
and an Exception (UnicodeDecodeError) occurred, but ONLY for '\x'
Therefore this bug is valid for the case where test = '\x'
Sorry Lou, I should have been much more careful. It happens both with: '\x' and u'\u' (\u escaping is only recognized on unicode strings, while \x works with any encoding) Fore more information about valid escape characters in Python 2.x, see https://docs.python.org/2/reference/lexical_analysis.html The thing is, users are going to type randomly, and good testers will type all sorts of nonsense. They need to be shown errors instead of exceptions... Resolved in: changeset: 18519:517409415907 bookmark: main tag: tip user: Julien Enselme <jenselme@netbeans.org> date: Tue Jun 27 21:26:18 2017 +0200 summary: #251705: UnicodeDecodeError pop-up while entering \x code |