OSDN Git Service
Ivailo Monev [Thu, 8 Aug 2019 12:53:22 +0000 (12:53 +0000)]
fix system locale and defalt to C, not system locale
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 8 Aug 2019 12:14:00 +0000 (12:14 +0000)]
compare language to enum instead of integer in systemPrivate() function
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 8 Aug 2019 12:12:53 +0000 (12:12 +0000)]
move qlocale_data_p header inclusion to the top of qlocale source
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 8 Aug 2019 12:12:09 +0000 (12:12 +0000)]
remove duplicate "g" tag from unsupported in genlocale script
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 8 Aug 2019 11:21:20 +0000 (11:21 +0000)]
correct date/time format parsing and adjust some test cases
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 7 Aug 2019 22:07:12 +0000 (22:07 +0000)]
use iconv codec as fallback, not default
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 7 Aug 2019 21:01:30 +0000 (21:01 +0000)]
move locale headers inclusions to the top of tst_qlocale source
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 7 Aug 2019 20:32:13 +0000 (20:32 +0000)]
"a" is valid date/time format tag
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 7 Aug 2019 20:01:38 +0000 (20:01 +0000)]
adjust some locale tests expected data
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 7 Aug 2019 19:26:34 +0000 (19:26 +0000)]
locale data table should not have Default entry
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 7 Aug 2019 19:25:26 +0000 (19:25 +0000)]
make QLocale::matchingLocales() behave as documented
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 7 Aug 2019 14:48:16 +0000 (14:48 +0000)]
map duplicate language, script and country codes as aliases
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 7 Aug 2019 13:53:57 +0000 (13:53 +0000)]
add --printenums option to genlocale script
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 7 Aug 2019 11:11:03 +0000 (11:11 +0000)]
replace QLocale::LastScript with scriptTblSize for consistency
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 6 Aug 2019 21:18:54 +0000 (21:18 +0000)]
fix language, script and country code detection from non-null termiated strings
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 6 Aug 2019 19:54:58 +0000 (19:54 +0000)]
check exit status instead of output to verify syslocaleapp exited normally
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 6 Aug 2019 19:47:06 +0000 (19:47 +0000)]
fix default locale fallback
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 6 Aug 2019 19:36:36 +0000 (19:36 +0000)]
revert back to non-root defaults for Default and C
for compatibility and because root uses UTF-8 characters for quotation for
an example
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 6 Aug 2019 19:09:41 +0000 (19:09 +0000)]
fix QLocale::standaloneDayName()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 6 Aug 2019 19:01:29 +0000 (19:01 +0000)]
no and no_NO are no longer valid locale codes
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 6 Aug 2019 18:56:47 +0000 (18:56 +0000)]
add more possible occurences if invalid date/time format tags
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 6 Aug 2019 18:22:12 +0000 (18:22 +0000)]
use somewhat correct defaults only for parent locales
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 6 Aug 2019 18:04:00 +0000 (18:04 +0000)]
correct default alternate quotations
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 6 Aug 2019 16:40:57 +0000 (16:40 +0000)]
QLocale::name() should separate language from country with underscore, not dash
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 6 Aug 2019 15:33:59 +0000 (15:33 +0000)]
use Q_NULLPTR for empty char array values in genlocale script
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 6 Aug 2019 15:17:10 +0000 (15:17 +0000)]
update README [ci skip]
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 6 Aug 2019 14:30:13 +0000 (14:30 +0000)]
update linguist numerus tables
upstream commits:
https://github.com/qt/qttools/commit/
5145bed0b51062fdab0e62eaecbb5a6cdbe7048b
https://github.com/qt/qttools/commit/
72c62e2df12fce866d7aca00227166d0ca1a40de
https://github.com/qt/qttools/commit/
28df30fccd3d5b1e1e0b58efb225246766d7fcd5
https://github.com/qt/qttools/commit/
c2937bd62ee559639ce9616fd58c7134f6f3a85c
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 6 Aug 2019 14:09:10 +0000 (14:09 +0000)]
discard non-territory locale entries
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 6 Aug 2019 13:07:25 +0000 (13:07 +0000)]
use qint16 in QLocale where applicable
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 6 Aug 2019 11:27:12 +0000 (11:27 +0000)]
minor genlocale script review
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 6 Aug 2019 11:26:32 +0000 (11:26 +0000)]
avoid temporaries in QLocalePrivate::codeToLanguage() and QLocalePrivate::codeToScript()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 6 Aug 2019 11:26:00 +0000 (11:26 +0000)]
do not exclude world from country table
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 5 Aug 2019 22:24:47 +0000 (22:24 +0000)]
do not overwrite parent locale values with defaults
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 5 Aug 2019 22:00:18 +0000 (22:00 +0000)]
parse parent locales from genlocale script
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 5 Aug 2019 20:27:33 +0000 (20:27 +0000)]
error out on unknown month/day from genlocale script [ci skip]
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 5 Aug 2019 20:24:01 +0000 (20:24 +0000)]
variant locales are not supported, yet
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 5 Aug 2019 19:47:38 +0000 (19:47 +0000)]
set defaults from main locale if territory is specified
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 5 Aug 2019 18:28:49 +0000 (18:28 +0000)]
do not discard locale tables entries
it is required by QLocale::countriesForLanguage() for an example
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 5 Aug 2019 16:33:01 +0000 (16:33 +0000)]
correct weekend end parsing
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 5 Aug 2019 14:12:40 +0000 (14:12 +0000)]
update note about CLDR version in QLocale documentation [ci skip]
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 5 Aug 2019 13:51:44 +0000 (13:51 +0000)]
update QLocale language, country and script enums docs [ci skip]
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 5 Aug 2019 12:49:26 +0000 (12:49 +0000)]
shrink locales table
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 5 Aug 2019 12:28:31 +0000 (12:28 +0000)]
compare language, country and script instead of address in localePrivateIndex() function
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 5 Aug 2019 11:48:01 +0000 (11:48 +0000)]
fix QLocalePrivate::bcp47Name()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 5 Aug 2019 11:26:06 +0000 (11:26 +0000)]
fix long day names mapping
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 5 Aug 2019 10:58:40 +0000 (10:58 +0000)]
remove assumptions about language/country code length in QLocale::name()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 5 Aug 2019 10:57:58 +0000 (10:57 +0000)]
replace longest matches date/time tags first in genlocale script
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 5 Aug 2019 01:33:01 +0000 (01:33 +0000)]
remove now redundant locale database utility
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 5 Aug 2019 01:32:21 +0000 (01:32 +0000)]
remove invalid date/time format tags from locale data
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 4 Aug 2019 20:31:26 +0000 (20:31 +0000)]
make zero symbol uint and regenerate locale table
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 4 Aug 2019 19:27:41 +0000 (19:27 +0000)]
implement imperial table generator
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 4 Aug 2019 18:24:13 +0000 (18:24 +0000)]
make QLocalePrivate arrays members const
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 4 Aug 2019 18:23:29 +0000 (18:23 +0000)]
minor genlocale script review
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 4 Aug 2019 15:56:53 +0000 (15:56 +0000)]
implement locales table generator
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 2 Aug 2019 15:00:01 +0000 (15:00 +0000)]
remove invalid entries from linguist tables
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 2 Aug 2019 14:07:55 +0000 (14:07 +0000)]
rework genlocale script and remove assumptions about table entries length
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 1 Aug 2019 19:29:46 +0000 (19:29 +0000)]
Merge branch 'master' of https://github.com/fluxer/katie into locale
Ivailo Monev [Thu, 1 Aug 2019 19:28:45 +0000 (19:28 +0000)]
fix one of the limitations of QT_TRY/QT_CATCH macros
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 1 Aug 2019 18:08:02 +0000 (18:08 +0000)]
ground work for locale data update
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 1 Aug 2019 12:56:22 +0000 (12:56 +0000)]
optimize QLineF::angleTo()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 1 Aug 2019 12:47:21 +0000 (12:47 +0000)]
remove default case from QLibraryInfo::location()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 1 Aug 2019 12:46:51 +0000 (12:46 +0000)]
remove redundant header inclusions from qlibraryinfo source
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 1 Aug 2019 12:39:03 +0000 (12:39 +0000)]
add NaCl architecture check
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 1 Aug 2019 12:27:12 +0000 (12:27 +0000)]
add HPPA (a.k.a. PA-RISC) architecture check
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 1 Aug 2019 11:53:17 +0000 (11:53 +0000)]
correct JavaScriptCore jsNumberCell() stubs for non-JSVALUE32 case
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 1 Aug 2019 11:26:50 +0000 (11:26 +0000)]
use memcpy() for buffers copy in JavaScriptCore where possible
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 31 Jul 2019 20:13:24 +0000 (20:13 +0000)]
avoid creating QPixmap from other QPixmap in QItemDelegate::selected()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 31 Jul 2019 19:15:59 +0000 (19:15 +0000)]
use loop instead of while iterator in UString::ascii()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 31 Jul 2019 13:26:35 +0000 (13:26 +0000)]
handle relative paths in benchcompare script [ci skip]
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 31 Jul 2019 12:06:00 +0000 (12:06 +0000)]
remove JavaScriptCore JIT leftovers
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 31 Jul 2019 11:11:04 +0000 (11:11 +0000)]
compiler warning fix
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 31 Jul 2019 00:10:06 +0000 (00:10 +0000)]
initialize all members of the QPixmapCache benchmark struct
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 31 Jul 2019 00:09:28 +0000 (00:09 +0000)]
compiler warning fix
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 30 Jul 2019 21:24:44 +0000 (21:24 +0000)]
remove redundant definition check from qplatformdefs header
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 30 Jul 2019 21:22:33 +0000 (21:22 +0000)]
remove now obsolete workaround for X11 macros
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 30 Jul 2019 20:40:30 +0000 (20:40 +0000)]
replace LD_LIBRARY_PATH override with debhelper solution
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 30 Jul 2019 20:14:10 +0000 (20:14 +0000)]
set debhelper compat to 10 for parallel build support
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 30 Jul 2019 18:35:17 +0000 (18:35 +0000)]
use pthread_equal() for thread id comparison
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 30 Jul 2019 18:34:49 +0000 (18:34 +0000)]
initialize QThreadPrivate::thread_id as zero
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 30 Jul 2019 18:22:52 +0000 (18:22 +0000)]
effectively revert
96ec0276e87ffcf859484d87e544c3af335cb215
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 30 Jul 2019 15:41:29 +0000 (15:41 +0000)]
initialize QWExtra::compress_events to true
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 30 Jul 2019 12:06:08 +0000 (12:06 +0000)]
call QHash::count() from QCache::count() even tho they both return size
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 30 Jul 2019 12:04:33 +0000 (12:04 +0000)]
review CMake modules
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 30 Jul 2019 11:30:40 +0000 (11:30 +0000)]
build bootstrap moc without regular expression feature
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 30 Jul 2019 11:30:04 +0000 (11:30 +0000)]
use character lookup instead of regular expression in QDateTime::fromString()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 30 Jul 2019 11:18:43 +0000 (11:18 +0000)]
remove unused QScriptDeclarativeClassPrivate member
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 30 Jul 2019 11:01:18 +0000 (11:01 +0000)]
use proper type for unicode script
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 30 Jul 2019 11:00:18 +0000 (11:00 +0000)]
remove unused script argument from QFontDatabase functions
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 30 Jul 2019 01:18:23 +0000 (01:18 +0000)]
remove now non-existing method declaration from JSC Lexer header
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 30 Jul 2019 01:15:52 +0000 (01:15 +0000)]
remove redundant contains check from QChache::take()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 30 Jul 2019 01:15:25 +0000 (01:15 +0000)]
remove unused JSC SourceProvider member
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 29 Jul 2019 23:35:07 +0000 (23:35 +0000)]
add note where to get the data from to genutf
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 29 Jul 2019 23:21:21 +0000 (23:21 +0000)]
review genutf script [ci skip]
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 29 Jul 2019 22:09:38 +0000 (22:09 +0000)]
update manual pages [ci skip]
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 29 Jul 2019 22:08:49 +0000 (22:08 +0000)]
correct qscript tool name in manual page
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 29 Jul 2019 18:37:17 +0000 (18:37 +0000)]
use qulonglong construct to make the compiler cope with quintptr
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 29 Jul 2019 17:48:58 +0000 (17:48 +0000)]
replace c-style quintptr casts with constructors for consistency
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 29 Jul 2019 17:48:26 +0000 (17:48 +0000)]
add short/ushort QByteArray::number() and QString::number() overloads
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 29 Jul 2019 17:43:12 +0000 (17:43 +0000)]
Revert "JavaScriptCore table, iterators and mutex do not have to be mutable"
This reverts commit
8f0ff492ecffd5a61bb828796961e867249e7fb7.
Ivailo Monev [Mon, 29 Jul 2019 17:42:30 +0000 (17:42 +0000)]
reimplement QCache purely based on QHash
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>