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

		/*
		 * 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 (GetVar("CODEPAGE", buffer, sizeof(buffer), 0) > 0) {
# else
		if (GetVar("Charset", buffer, sizeof(buffer), 0) > 0) {


# endif
			of_string_encoding_t ASCII = OF_STRING_ENCODING_ASCII;

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







|

|

>
>







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, "");

# if defined(OF_MORPHOS)
		if (GetVar("CODEPAGE", buffer, sizeof(buffer), 0) > 0) {
# 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]);