Skip to content

Commit

Permalink
Note about system default encoding for Console
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveeclipse committed Jun 28, 2022
1 parent 391075f commit 8c64e3c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
Binary file added 4.25/images/system_encoding.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions 4.25/platform.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ <h2>Platform and Equinox</h2>
<li><a href="#TextEditors">Text Editors</a></li>
<li><a href="#Preferences">Preferences</a></li>
<li><a href="#StylingThemes">Themes and Styling</a></li>
<li><a href="#Debug">Debug</a></li>
<li><a href="#GeneralUpdates">General Updates</a></li>
</ul>

Expand Down Expand Up @@ -79,6 +80,33 @@ <h2>Themes and Styling </h2>
</tr>
<!-- ******************* End of Themes and Styling ************************************* -->

<!-- *********************** Debug ******************************** -->
<tr>
<td id="Debug" class="section" colspan="2">
<h2>Debug</h2>
</td>
</tr>

<tr id="debug-system-encoding"> <!-- https://github.com/eclipse-platform/eclipse.platform.debug/issues/42 -->
<td class="title"><a href="#debug-system-encoding">System encoding for Console</a></td>
<td class="content">
<p>
New launch configuration attribute is added to allow processes start with system encoding.
As a result, Java processes can start without specifying explicit "-Dfile.encoding=" option, so JVM will use
system defaults defined by user environment.
</p>
<img src="images/system_encoding.png" alt=""/>
<p>
API notes: if <code>DebugPlugin.ATTR_FORCE_SYSTEM_CONSOLE_ENCODING<code/> attribute is set,
<code>ILaunchManager.getEncoding(ILaunchConfiguration)<code/>
will return the value of <code>Platform.getSystemCharset()</code> and
<code>ILaunchConfiguration.getAttribute(DebugPlugin.ATTR_CONSOLE_ENCODING, null)</code>
will return <code>null</code>, indicating that default system value should be used.
</p>
</td>
</tr>
<!--************************ End of Debug ******************************** -->

<!-- ******************* General Updates ************************************* -->
<tr>
<td id="GeneralUpdates" class="section" colspan="2">
Expand Down

0 comments on commit 8c64e3c

Please sign in to comment.