From 81c54e607b1e79f20b35ca6f57ec2da8ed4185dd Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Mon, 2 Sep 2013 13:56:51 +0200 Subject: prepare to accept partial BCP47 (lll-Ssss-CC-vvvvvvvv) Change-Id: I3c65cb43696a829f29ab573b7b6e424a39d1a547 --- setup_native/source/win32/customactions/sellang/sellang.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'setup_native/source/win32/customactions') diff --git a/setup_native/source/win32/customactions/sellang/sellang.cxx b/setup_native/source/win32/customactions/sellang/sellang.cxx index b6f7ec559ea0..06c4c029a4e6 100644 --- a/setup_native/source/win32/customactions/sellang/sellang.cxx +++ b/setup_native/source/win32/customactions/sellang/sellang.cxx @@ -202,8 +202,12 @@ present_in_ui_langs(const char *lang) namespace { +/* TODO-BCP47: unlimit this, and if possible change from '_' to '-' separator + * to ease things. */ +// XXX NOTE: the sizeof needs to follow what is accepted in +// setup_native/source/packinfo/spellchecker_selection.pl struct InstallLocalized { - char lang[sizeof("xx_XX")]; + char lang[sizeof("lll_Ssss_CC_vvvvvvvv")]; bool install; }; -- cgit v1.2.3