Bugzilla – Attachment 894 Details for
Bug 1517
Invalid charset for JOAL Strings
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch used in my case to work around this issue (For reference)
joal-charset-encoding.patch (text/plain), 1.05 KB, created by
Mathieu Féry (MathiusD)
on 2025-07-08 09:26:45 CEST
(
hide
)
Description:
Patch used in my case to work around this issue (For reference)
Filename:
MIME Type:
Creator:
Mathieu Féry (MathiusD)
Created:
2025-07-08 09:26:45 CEST
Size:
1.05 KB
patch
obsolete
>Index: src/java/jogamp/openal/ALCImpl.java ><+>UTF-8 >=================================================================== >diff --git a/src/java/jogamp/openal/ALCImpl.java b/src/java/jogamp/openal/ALCImpl.java >--- a/src/java/jogamp/openal/ALCImpl.java (revision e5e06c3169fe537b15c5ec86c6c032c7ec52743b) >+++ b/src/java/jogamp/openal/ALCImpl.java (date 1751958729770) >@@ -53,7 +53,7 @@ > final byte[] res = new byte[buf.capacity()]; > buf.get(res); > try { >- return new String(res, "US-ASCII"); >+ return new String(res, "UTF-8"); > } catch (final UnsupportedEncodingException e) { > throw new ALException(e); > } >@@ -111,7 +111,7 @@ > while ((i < bytes.length) && (bytes[i] != 0)) { > i++; > } >- res.add(new String(bytes, startIndex, i - startIndex, "US-ASCII")); >+ res.add(new String(bytes, startIndex, i - startIndex, "UTF-8")); > i++; > } > return (String[]) res.toArray(new String[res.size()]);
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 1517
: 894