ObjFW  Diff

Differences From Artifact [5a7d886f0b]:

To Artifact [877ceb4ed7]:


484
485
486
487
488
489
490
491

492
493
494
495
496
497
498
499
484
485
486
487
488
489
490

491

492
493
494
495
496
497
498







-
+
-







		int len;

		if (fmt == nil)
			@throw [OFInvalidArgumentException newWithClass: isa
							       selector: _cmd];

		if ((len = of_vasprintf(&string, [fmt cString], args)) == -1)
			@throw [OFInvalidArgumentException newWithClass: isa
			@throw [OFInvalidFormatException newWithClass: isa];
							       selector: _cmd];

		@try {
			length = len;

			switch (of_string_check_utf8(string, length)) {
			case 1:
				isUTF8 = YES;