equal
deleted
inserted
replaced
162 return; |
162 return; |
163 if (!jdk.internal.misc.VM.isBooted()) |
163 if (!jdk.internal.misc.VM.isBooted()) |
164 return; |
164 return; |
165 initialized = true; |
165 initialized = true; |
166 |
166 |
167 String map = getProperty("sun.nio.cs.map"); |
167 String map = GetPropertyAction.privilegedGetProperty("sun.nio.cs.map"); |
168 if (map != null) { |
168 if (map != null) { |
169 String[] maps = map.split(","); |
169 String[] maps = map.split(","); |
170 for (int i = 0; i < maps.length; i++) { |
170 for (int i = 0; i < maps.length; i++) { |
171 if (maps[i].equalsIgnoreCase("Windows-31J/Shift_JIS")) { |
171 if (maps[i].equalsIgnoreCase("Windows-31J/Shift_JIS")) { |
172 // if we dont have both sjis and ms932, do nothing |
172 // if we dont have both sjis and ms932, do nothing |
197 } |
197 } |
198 } |
198 } |
199 } |
199 } |
200 } |
200 } |
201 |
201 |
202 private static String getProperty(String key) { |
|
203 return GetPropertyAction.getProperty(key); |
|
204 } |
|
205 |
|
206 |
|
207 } |
202 } |