Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 269293 Details for
Bug 518909
Regression: IOConsoleOutputStream.setEncoding(String) cannot handle null argument anymore
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Fix for setting null encoding
fix_set_null_encoding.patch (text/plain), 1.05 KB, created by
Andreas Loth
on 2017-07-08 09:32:28 EDT
(
hide
)
Description:
Fix for setting null encoding
Filename:
MIME Type:
Creator:
Andreas Loth
Created:
2017-07-08 09:32:28 EDT
Size:
1.05 KB
patch
obsolete
>diff --git a/org.eclipse.ui.console/src/org/eclipse/ui/console/IOConsoleOutputStream.java b/org.eclipse.ui.console/src/org/eclipse/ui/console/IOConsoleOutputStream.java >index 0cba219..6f9c559 100644 >--- a/org.eclipse.ui.console/src/org/eclipse/ui/console/IOConsoleOutputStream.java >+++ b/org.eclipse.ui.console/src/org/eclipse/ui/console/IOConsoleOutputStream.java >@@ -16,6 +16,7 @@ > import java.nio.charset.Charset; > > import org.eclipse.swt.graphics.Color; >+import org.eclipse.ui.WorkbenchEncoding; > import org.eclipse.ui.internal.console.IOConsolePartitioner; > import org.eclipse.ui.internal.console.StreamDecoder; > >@@ -311,7 +312,13 @@ > * @param encoding encoding identifier > */ > public void setEncoding(String encoding) { >- Charset charset = Charset.forName(encoding); >+ String charsetName; >+ if (encoding == null) { >+ charsetName = WorkbenchEncoding.getWorkbenchDefaultEncoding(); >+ } else { >+ charsetName = encoding; >+ } >+ Charset charset = Charset.forName(charsetName); > try { > this.setCharset(charset); > } catch (IOException ioe) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 518909
:
269292
| 269293