ObjFW  Diff

Differences From Artifact [72ae978ca9]:

To Artifact [16040a43d0]:


222
223
224
225
226
227
228
229

230
231

232


233
234
235
236
237
238
239
222
223
224
225
226
227
228

229
230

231
232
233
234
235
236
237
238
239
240
241







-
+

-
+

+
+








		/*
		 * Returns an empty string on MorphOS + libnix, but still
		 * applies it so that printf etc. work as expected.
		 */
		setlocale(LC_ALL, "");

# ifdef OF_MORPHOS
# if defined(OF_MORPHOS)
		if (GetVar("CODEPAGE", buffer, sizeof(buffer), 0) > 0) {
# else
# elif defined(OF_AMIGAOS4)
		if (GetVar("Charset", buffer, sizeof(buffer), 0) > 0) {
# else
		if (0) {
# endif
			of_string_encoding_t ASCII = OF_STRING_ENCODING_ASCII;

			@try {
				_encoding = of_string_parse_encoding(
				    [OFString stringWithCString: buffer
						       encoding: ASCII]);