ObjFW  Diff

Differences From Artifact [0b5d50eb1d]:

To Artifact [aa7c2af69a]:


451
452
453
454
455
456
457
458
459

460
461
462
463
464

465
466
467
468

469
470
471
472
473
474
475
451
452
453
454
455
456
457


458


459
460

461
462
463
464

465
466
467
468
469
470
471
472







-
-
+
-
-


-
+



-
+







		if (GetVar("Language", buffer, sizeof(buffer), 0) > 0)
			_language = [[OFString alloc]
			    initWithCString: buffer
				   encoding: _encoding];

		if ((locale = OpenLocale(NULL)) != NULL) {
			@try {
				union {
					uint32_t u32;
				uint32_t territory;
					char c[4];
				} territory;
				size_t length;

				territory.u32 =
				territory =
				    OF_BSWAP32_IF_LE(locale->loc_CountryCode);

				for (length = 0; length < 4; length++)
					if (territory.c[length] == 0)
					if (((char *)territory)[length] == 0)
						break;

				_territory = [[OFString alloc]
				    initWithCString: territory.c
					   encoding: _encoding
					     length: length];
			} @finally {