ObjFW  Check-in [4dfd47aeaa]

Overview
Comment:OFLocalization: Fix setting the territory
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 4dfd47aeaa61fe06e189d47739aadedbeeb040c0c6edddb3af58fd2d2e1c9d6b
User & Date: js on 2018-04-15 14:49:47
Other Links: manifest | tags
Context
2018-04-15
15:09
Print system info at the end of the tests check-in: 7075962f87 user: js tags: trunk
14:49
OFLocalization: Fix setting the territory check-in: 4dfd47aeaa user: js tags: trunk
14:48
Print the localization at the end of the tests check-in: 9557564b3a user: js tags: trunk
Changes

Modified src/OFLocalization.m from [50c7e0128e] to [c0a1c16378].

148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
		if (messagesLocale == NULL)
			messagesLocale = locale;

		if (messagesLocale != NULL) {
			void *pool = objc_autoreleasePoolPush();

			parseLocale(messagesLocale, &_encoding,
			    &_language, &_language);

			[_language retain];
			[_territory retain];

			objc_autoreleasePoolPop(pool);
		}
#else







|







148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
		if (messagesLocale == NULL)
			messagesLocale = locale;

		if (messagesLocale != NULL) {
			void *pool = objc_autoreleasePoolPush();

			parseLocale(messagesLocale, &_encoding,
			    &_language, &_territory);

			[_language retain];
			[_territory retain];

			objc_autoreleasePoolPop(pool);
		}
#else