comparison src/glyphs-eimage.c @ 4834:b3ea9c582280

Use new cygwin_conv_path API with Cygwin 1.7 for converting names between Win32 and POSIX, UTF-8-aware, with attendant changes elsewhere
author Ben Wing <ben@xemacs.org>
date Tue, 12 Jan 2010 01:38:04 -0600
parents 1cecc3e9f0a0
children 95c4ced5c07c
comparison
equal deleted inserted replaced
4833:4dd2389173fc 4834:b3ea9c582280
319 Extbyte buffer[JMSG_LENGTH_MAX]; 319 Extbyte buffer[JMSG_LENGTH_MAX];
320 Ibyte *intbuf; 320 Ibyte *intbuf;
321 321
322 /* Create the message */ 322 /* Create the message */
323 (*cinfo->err->format_message) (cinfo, buffer); 323 (*cinfo->err->format_message) (cinfo, buffer);
324 EXTERNAL_TO_C_STRING (buffer, intbuf, Qnative); 324 EXTERNAL_TO_C_STRING (buffer, intbuf, Qjpeg_error_message_encoding);
325 warn_when_safe (Qjpeg, Qinfo, "%s", intbuf); 325 warn_when_safe (Qjpeg, Qinfo, "%s", intbuf);
326 } 326 }
327 327
328 /* The code in this routine is based on example.c from the JPEG library 328 /* The code in this routine is based on example.c from the JPEG library
329 source code and from gif_instantiate() */ 329 source code and from gif_instantiate() */
373 Lisp_Object errstring; 373 Lisp_Object errstring;
374 Extbyte buffer[JMSG_LENGTH_MAX]; 374 Extbyte buffer[JMSG_LENGTH_MAX];
375 375
376 /* Create the message */ 376 /* Create the message */
377 (*cinfo.err->format_message) ((j_common_ptr) &cinfo, buffer); 377 (*cinfo.err->format_message) ((j_common_ptr) &cinfo, buffer);
378 errstring = build_ext_string (buffer, Qnative); 378 errstring = build_ext_string (buffer, Qjpeg_error_message_encoding);
379 379
380 signal_image_error_2 ("JPEG decoding error", 380 signal_image_error_2 ("JPEG decoding error",
381 errstring, instantiator); 381 errstring, instantiator);
382 } 382 }
383 } 383 }