Re: Unicode on Mac

2006-08-23 Thread Peter Kümmel
Angus Leeming schrieb: Lars Gullik Bjønnes wrote: Angus Leeming <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: | > Angus Leeming writes: | > | Sorry, don't follow. | > Ahh so you created one more. | | ;-) It wasn't exactly rocket science though. | | > | return iconv_convert("UTF-8

Re: Unicode on Mac

2006-08-23 Thread Angus Leeming
Angus Leeming wrote: googling on UCS-4-INTERNAL pulls up this: http://www.opensource.apple.com/darwinsource/Current/libiconv-13/libiconv/lib/ucs4internal.h It really does look like iconv will do the whole shmooze for you. No need for any LyX-side magic with memcpy or unions or the like. Oh

Re: Unicode on Mac

2006-08-23 Thread Angus Leeming
Lars Gullik Bjønnes wrote: Angus Leeming <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: | > Angus Leeming writes: | > | Sorry, don't follow. | > Ahh so you created one more. | | ;-) It wasn't exactly rocket science though. | | > | return iconv_convert("UTF-8", "UCS-4-INTERNAL", in);

Re: Unicode on Mac

2006-08-23 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: | > Angus Leeming writes: | > | Sorry, don't follow. | > Ahh so you created one more. | | ;-) It wasn't exactly rocket science though. | | > | return iconv_convert("UTF-8", "UCS-4-INTERNAL", in); | > No such encoding. "UCS-

Re: Unicode on Mac

2006-08-23 Thread Angus Leeming
Lars Gullik Bjønnes wrote: Angus Leeming writes: | Sorry, don't follow. Ahh so you created one more. ;-) It wasn't exactly rocket science though. | return iconv_convert("UTF-8", "UCS-4-INTERNAL", in); No such encoding. "UCS-4" is supposed to do just that, use the default endianess on th

Re: Unicode on Mac

2006-08-23 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Sorry, don't follow. Ahh so you created one more. | std::vector | ucs4_to_utf8(std::vector const & ucs4str) | { | // ucs4str has a machine-specific byte order, but that | // doesn't actually matter because *we* generated it in | // th

Re: Unicode on Mac

2006-08-23 Thread Angus Leeming
Lars Gullik Bjønnes wrote: Angus Leeming <[EMAIL PROTECTED]> writes: | In fact, when I look at your code, why don't you make iconv_convert a | template and return a vector of the correct type directly. All that's | needed is a change to the last couple of lines of iconv_convert where | you fill

Re: Unicode on Mac

2006-08-22 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | In fact, when I look at your code, why don't you make iconv_convert a | template and return a vector of the correct type directly. All that's | needed is a change to the last couple of lines of iconv_convert where | you fill outvec: | | int const

Re: Unicode on Mac

2006-08-22 Thread Angus Leeming
Angus Leeming wrote: Lars Gullik Bjønnes wrote: Angus Leeming <[EMAIL PROTECTED]> writes: | Bennett Helm wrote: | > Now that unicode is in, I notice that whatever I type on Mac comes | > out in Chinese characters, no matter what the display font setting | > in preferences. Any idea what's going

Re: Unicode on Mac

2006-08-22 Thread Angus Leeming
Lars Gullik Bjønnes wrote: Angus Leeming <[EMAIL PROTECTED]> writes: | Bennett Helm wrote: | > Now that unicode is in, I notice that whatever I type on Mac comes | > out in Chinese characters, no matter what the display font setting | > in preferences. Any idea what's going wrong? | | This is p

Re: Unicode on Mac

2006-08-22 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Bennett Helm wrote: | > Now that unicode is in, I notice that whatever I type on Mac comes | > out in Chinese characters, no matter what the display font setting | > in preferences. Any idea what's going wrong? | | This is probably another manifestation

Re: Unicode on Mac

2006-08-22 Thread Angus Leeming
Bennett Helm wrote: Now that unicode is in, I notice that whatever I type on Mac comes out in Chinese characters, no matter what the display font setting in preferences. Any idea what's going wrong? This is probably another manifestation of the problems that Abdel's been having on Windows. Th

Unicode on Mac

2006-08-22 Thread Bennett Helm
Now that unicode is in, I notice that whatever I type on Mac comes out in Chinese characters, no matter what the display font setting in preferences. Any idea what's going wrong? Bennett