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.

Bug 240197 - Non-latin characters in $HOSTNAME or $USER break terminal on Windows on "bash --login"
Summary: Non-latin characters in $HOSTNAME or $USER break terminal on Windows on "bash...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Terminalemulator (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: ilia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-10 10:34 UTC by ilia
Modified: 2014-04-24 02:16 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ilia 2014-01-10 10:34:54 UTC
While was fixing "Bug 189529 - [PATCH] Terminal should invoke bash --login when invoking bash; should invoke bash, not sh, on Cygwin", 
I noticed a non-expected behavior of the terminal when $USER or $HOSTNAME contain non-latin characters.

Trying to investigate now, if it's a regression after "Bug 236661 - Make terminal title more informative"
or issue of terminal's interpreter.
Comment 1 ilia 2014-02-20 08:25:55 UTC
java.lang.reflect.InvocationTargetException
	at java.awt.EventQueue.invokeAndWait(EventQueue.java:1272)
	at java.awt.EventQueue.invokeAndWait(EventQueue.java:1247)
	at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1349)
	at org.netbeans.lib.terminalemulator.StreamTerm$OutputMonitor.run(StreamTerm.java:256)
Caused by: java.lang.NullPointerException
	at org.netbeans.lib.terminalemulator.InterpDumb.processChar(InterpDumb.java:240)
	at org.netbeans.lib.terminalemulator.Term.putc_work(Term.java:4462)
	at org.netbeans.lib.terminalemulator.Term.access$400(Term.java:249)
	at org.netbeans.lib.terminalemulator.Term$BaseTermStream.putChars(Term.java:409)
	at org.netbeans.lib.terminalemulator.Term.putChars(Term.java:3241)
	at org.netbeans.lib.terminalemulator.StreamTerm$OutputMonitor$Trampoline.run(StreamTerm.java:205)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:241)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
	at java.awt.EventQueue.access$200(EventQueue.java:103)
	at java.awt.EventQueue$3.run(EventQueue.java:694)
	at java.awt.EventQueue$3.run(EventQueue.java:692)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Comment 2 Quality Engineering 2014-02-21 03:09:11 UTC
Integrated into 'main-silver', will be available in build *201402210001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/17b862450288
User: Ilia Gromov <ilia@netbeans.org>
Log: fixed Bug #240197 - Non-latin characters in $HOSTNAME or $USER break terminal on Windows on "bash --login"
Comment 3 Quality Engineering 2014-04-24 02:16:39 UTC
Integrated into 'releases/release80', will be available in build *201404240045* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/ebb05542869e
User: Ilia Gromov <ilia@netbeans.org>
Log: fixed Bug #240197 - Non-latin characters in $HOSTNAME or $USER break terminal on Windows on "bash --login"
(transplanted from 17b8624502880e6defd748f6905258c0719a9b27)