< prev index next >

make/jdk/src/classes/build/tools/cldrconverter/NumberingSystemsParseHandler.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2012, 2017, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2012, 2018, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 60,69 **** --- 60,72 ---- String script = attributes.getValue("id"); String digits = attributes.getValue("digits"); if (Character.isSurrogate(digits.charAt(0))) { // DecimalFormatSymbols doesn't support supplementary characters as digit zero. + // Replace supplementary digits with latin digits. This is a restriction till JDK-8204092 is resolved. + digits = "0123456789"; + put(script, digits); break numberingSystem; } // in case digits are in the reversed order, reverse back the order. if (digits.charAt(0) > digits.charAt(digits.length() - 1)) { StringBuilder sb = new StringBuilder(digits);
< prev index next >