ObjFW  Diff

Differences From Artifact [9584b4567b]:

To Artifact [f4d00fc2db]:


827
828
829
830
831
832
833



834
835
836
837
838
839
840
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843







+
+
+







		encoding: (of_string_encoding_t)encoding
{
	char *tmp;
	struct stat st;

	@try {
		OFFile *file;

		/* Make sure the file system is initialized */
		[OFFile class];

		if (stat([path cStringWithEncoding: [OFString
		    nativeOSEncoding]], &st) == -1)
			@throw [OFOpenFileFailedException
			    exceptionWithPath: path
					 mode: @"rb"];