[#1147] Copying RVALUE — why the lucky stiff <ruby-core@...>

Hello, everyone. Hope you are all doing well.

18 messages 2003/06/17
[#1155] Re: Copying RVALUE — matz@... (Yukihiro Matsumoto) 2003/06/20

Hi,

[#1157] Re: Copying RVALUE — why the lucky stiff <ruby-core@...> 2003/06/20

Yukihiro Matsumoto (matz@ruby-lang.org) wrote:

[#1173] class.c code cleanup (rb_class_*_instance_methods) — Matthew Dempsky <jivera@...>

Hi, I'm new to this mailing list so I don't know the procedure for

15 messages 2003/06/22
[#1174] Re: [Patch] class.c code cleanup (rb_class_*_instance_methods) — nobu.nokada@... 2003/06/22

Hi,

[#1175] Re: [Patch] class.c code cleanup (rb_class_*_instance_methods) — Matthew Dempsky <jivera@...> 2003/06/22

On Sun, 2003-06-22 at 05:36, nobu.nokada@softhome.net wrote:

[#1176] Re: [Patch] class.c code cleanup (rb_class_*_instance_methods) — nobu.nokada@... 2003/06/22

Hi,

[#1193] Re: [Patch] class.c code cleanup (rb_class_*_instance_methods) — Matthew Dempsky <jivera@...> 2003/06/25

On Sun, 2003-06-22 at 07:41, nobu.nokada@softhome.net wrote:

[#1177] Re: In 1.8.0 nil.to_s is not the same as "" — ts <decoux@...>

14 messages 2003/06/22

[OT] A question on input encodings

From: Dave Thomas <dave@...>
Date: 2003-06-05 14:36:54 UTC
List: ruby-core #1125
Folks:

Sorry - I know this is OT, but...

I want to extend RDoc to support multiple human languages. One idea is 
to have flags in the comment blocks, such as

   # This method...
   # :if: lang francaise
   # <french ...>
   # :if: nihongo
   # <japanese ...>
   # :if: german
   # <german...>

The problem is that I don't understand enough about editing files in 
non-UTF-8 encodings.

Here's my question. Say I have an existing file with comments in 
English, French, and Farsi. The French and Farsi comments include UTF-8 
characters. So far, I believe everything is OK.

Now, someone in Japan wants to add Japanese comments (I have no idea 
which encoding would be used, but let's say SJIS). If they fire up an 
editor in SJIS mode, will that get confused by the existing UTF-8 
characters in the file? If I edit the file later using a UTF-8 editor, 
will it normalize the SJIS characters and destroy those comments? Is is 
possible in practice to edit a file that contains multiple incompatible 
encodings?


Thanks



Dave


In This Thread

Prev Next