[M3devel] Windows, Unicode file names

Daniel Alejandro Benavides D. dabenavidesd at yahoo.es
Fri Jun 29 02:21:19 CEST 2012


Hi all:
in fact CM had the idea of rewriting the Modula-3 language definition in terms of UTF standard, but it never came out, perhaps we will need to maintain two definitions one SPwM3 and two newer CM style, and based on those standards make a front end who can write to the two kind of standards and make them interoperable.
One way of promoting CM3 could be talk about a renewed Modula-3, JVM-enabled, etc, system applications (alike Win32, Unix), where as DEC-SRC Modula-3 for research and development with parallelized environment like research system for open AAA compiler (I don't many others writing parallel compilers) with ESC, Vesta, etc.
Thanks in advance

--- El jue, 28/6/12, Dragiša Durić <dragisha at m3w.org> escribió:

De: Dragiša Durić <dragisha at m3w.org>
Asunto: Re: [M3devel] Windows, Unicode file names
Para: "Hendrik Boom" <hendrik at topoi.pooq.com>
CC: m3devel at elegosoft.com
Fecha: jueves, 28 de junio, 2012 12:19

My language (Serbian) is written with two alphabets. Before ISO-8859-2 we used ten (yes, 10) different encodings to represent our alphabet(s) with 8 bits. With ISO-8859-2 we got solution for Latin alphabet, but we had to use ISO-8859-5 for Cyrillic. One of our ten encodings (national standard come late) covered both Latin and Cyrillic in 8 bit. 

Back in 1991-2 I implemented system for handling above mentioned ten encodings. After that experience, an after decade or so of using/fighting ten encodings, you can trust me - even a notion of having single encoding for all language needs is a lifesaver :). 

That is where my oversensitivity to idea of having two ways to interpret strings comes from. Two ways, just because we can? Ok, we can use two, we can use ten, we can use fifty encodings!! 

But sensible way is to use one, if possible. And it is possible! It is called UTF-8.

On Jun 28, 2012, at 2:51 PM, Hendrik Boom wrote:

> On Wed, Jun 27, 2012 at 01:14:22PM +0200, Dragiša Durić wrote:
>> 
>> On Jun 27, 2012, at 12:19 PM, Jay K wrote:
>> 
>>>> More and more is obvious how ideal structure would be: ARRAY OF CHAR, UTF8 encoded, using SRC M3 Text.Hash().
>>> 
>>> I don't quite agree.
>>> There are two ideal approaches.
>>> 1)
>>>  TEXT is like ARRAY OF CHAR and no values over 0xFF (or maybe even 0x7F) 
>>>  "WiDETEXT" is like ARRAY OF WIDECHAR, for 16bit or 32bit WIDECHAR 
>> 
>> So we can have two representations for single thing: variable holding some text. And representation depends on a question "do you need non-basic-english-characters"?
> 
> I'm  starting to discover that a lot of my English documents have 
> nonAscii chracters in them.  In particular, the separate open and close 
> quotation marks around quoted speech take more than one byte in 
> Unicode.  True, in a starvation-level character set, they are both 
> represented as " , but that's really not what they are.
> 
> -- hendrik

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20120629/162f89dc/attachment-0002.html>


More information about the M3devel mailing list