ObjFW  Check-in [2328f5eeb2]

Overview
Comment:Fix a bug in +[stringWithPath:] that led to broken unicode.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 2328f5eeb2181e4ebdd40bda79c27c2adc6afc4de1d730afc97d5abbef387d6a
User & Date: js on 2010-08-24 19:24:18
Other Links: manifest | tags
Context
2010-08-24
19:37
Prevent loss of data due to wrong encoding in -[readLine].
This allows reading again with the correct encoding.
check-in: 508399eac1 user: js tags: trunk
19:24
Fix a bug in +[stringWithPath:] that led to broken unicode. check-in: 2328f5eeb2 user: js tags: trunk
2010-08-11
11:10
Update buildsys.
This time, it's to the latest buildsys rev for real.
check-in: f01a8bed01 user: js tags: trunk
Changes

Modified src/OFString.m from [5d478c6564] to [5dd44cde77].

581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
	}

	len = [first cStringLength];
	memcpy(string, [first cString], len);
	i = len;

	while ((component = va_arg(args, OFString*)) != nil) {
		len = [component length];
		string[i] = OF_PATH_DELIM;
		memcpy(string + i + 1, [component cString], len);
		i += len + 1;
	}

	string[i] = '\0';








|







581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
	}

	len = [first cStringLength];
	memcpy(string, [first cString], len);
	i = len;

	while ((component = va_arg(args, OFString*)) != nil) {
		len = [component cStringLength];
		string[i] = OF_PATH_DELIM;
		memcpy(string + i + 1, [component cString], len);
		i += len + 1;
	}

	string[i] = '\0';