ObjFW  Check-in [5fcee684cb]

Overview
Comment:OFLocalization: Fix setting the territory
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | 0.90
Files: files | file ages | folders
SHA3-256: 5fcee684cb7c80395191aec13b68f269c9a4ea300ddcd04fb7bc365ea681cc5c
User & Date: js on 2018-04-15 14:50:13
Other Links: branch diff | manifest | tags
Context
2020-05-31
16:17
Close 0.90 branch Closed-Leaf check-in: 3c65e47ed2 user: js tags: 0.90
2018-04-15
14:50
OFLocalization: Fix setting the territory check-in: 5fcee684cb user: js tags: 0.90
2017-11-04
21:12
OFString: Improve freeWhenDone in case of error check-in: ca0621da09 user: js tags: 0.90
Changes

Modified src/OFLocalization.m from [1e6c9574a4] to [448b3a7501].

141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
		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







|







141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
		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