Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intl: Tibetan / Dzongkha collation not working #3175

Closed
eroux opened this issue Jun 17, 2017 · 2 comments
Closed

Intl: Tibetan / Dzongkha collation not working #3175

eroux opened this issue Jun 17, 2017 · 2 comments

Comments

@eroux
Copy link

eroux commented Jun 17, 2017

Hello,

The Intl collator object doesn't handle Tibetan / Dzongkha collation correctly. I've setup a small test on http://eroux.fr/locales.html and the output of Edge 15 on Windows 10 is

bugck

May or may not be related to http://bugs.icu-project.org/trac/ticket/13224

@eroux
Copy link
Author

eroux commented Jun 17, 2017

a pure javascript version of the test:

var supportedLocales = Intl.Collator.supportedLocalesOf(['dz','bo']).join(", ");
var tibCollator = new Intl.Collator('dz');
var tibSortedArray = ["ང", "རྔ", "ལྔ", "སྔ", "བརྔ", "བསྔ", "ཅ"];
var tibRandomArray = ["ལྔ", "ང", "ཅ", "རྔ", "སྔ", "བརྔ", "བསྔ"];
var tibResultArray = ["ལྔ", "ང", "ཅ", "རྔ", "སྔ", "བརྔ", "བསྔ"];
tibResultArray.sort(tibCollator.compare);
var resPrint = "";
console.log("Tibetan/Dzongkha locales advertized as supported for collation: "+supportedLocales);
if (JSON.stringify(tibSortedArray)==JSON.stringify(tibResultArray)) {
  console.log("test passed!");
} else {
  console.log("error: "+JSON.stringify(tibRandomArray)+" has been sorted as "+JSON.stringify(tibResultArray)+", should have been "+JSON.stringify(tibSortedArray));
}

@curtisman curtisman added the Bug label Jun 19, 2017
@curtisman curtisman added this to the vNext milestone Jun 19, 2017
@dilijev dilijev changed the title Tibetan / Dzongkha collation not working Intl: Tibetan / Dzongkha collation not working Sep 6, 2017
@dilijev
Copy link
Contributor

dilijev commented Sep 6, 2017

Tracking as part of #3644

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants