8282422: JTable.print() failed with UnsupportedCharsetException on AIX ko_KR locale
Reviewed-by: prr, serb
This commit is contained in:
parent
8cc1235029
commit
6ea996c205
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1996, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1996, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -960,7 +960,9 @@ public abstract class FontConfiguration {
|
||||
return fc.newEncoder();
|
||||
}
|
||||
|
||||
if (!charsetName.startsWith("sun.awt.") && !charsetName.equals("default")) {
|
||||
if (!charsetName.startsWith("sun.awt.") &&
|
||||
!charsetName.equals("default") &&
|
||||
!charsetName.startsWith("sun.font.")) {
|
||||
fc = Charset.forName(charsetName);
|
||||
} else {
|
||||
@SuppressWarnings("removal")
|
||||
|
Loading…
x
Reference in New Issue
Block a user