Adding Unicode operators to D
Bill Baxter
wbaxter at gmail.com
Fri Oct 24 18:32:59 PDT 2008
On Sat, Oct 25, 2008 at 10:23 AM, Yigal Chripun <yigal100 at gmail.com> wrote:
> Bill Baxter wrote:
>> On Sat, Oct 25, 2008 at 9:15 AM, Sergey Gromov <snake.scaly at gmail.com> wrote:
>>> Sat, 25 Oct 2008 06:43:19 +0900,
>>> Bill Baxter wrote:
>>>> On Sat, Oct 25, 2008 at 6:37 AM, ore-sama <spam at here.lot> wrote:
>>>>> Bill Baxter Wrote:
>>>>>
>>>>>> (like I haven't been able to figure out how to get the
>>>>>> DOS console in Windows to display UTF-8)
>>>>> Console is a legacy technology (you even still call it "DOS"), why expect features from it?
>>>> So tell me what the alternative is? I had trouble with running D
>>>> tools from a Cygwin shell. Can't remember if I tried MSYS or not.
>>>>
>>>> Anyone using a shell for Windows that works and supports UTF-8 properly?
>>> A regular Windows console supports UTF-8 to some extent:
>>>
>>> * Change console font to Lucida Console
>>> * issue "chcp 65001"
>>>
>>> You can even get more fonts into there with a bit of hackery.
>>
>> I did that but "type <filewith-utf8.txt>" still prints garbage.
>>
>> --bb
>
> so don't use type. use notepad instead...
> notepad <filewith-utf8.txt>
Ok what about grep and sort and uniq then? Can notepad do that?
I have all these tools that work fine in my DOS shell. I never use
"type". It was simply meant as the most basic possible tool -- as in
if "type" doesn't work nothing will.
> also, MSYS gives you all the linux tools if you really need to be shell
> only.
I think part of the problem I had with Cygwin shell was that it can't
auto-complete dos filenames, but D programs on Windows can't accept
Cygwin paths. So it was a pain to work with command-line tools (like
DMD itself) that take filenames. So I don't think MSYS helps there
either.
> last resort: nothing stops you from implementing your own "cat"
> application in D with full Unicode support.
>
> most if not all linux shell tools are separate executables anyway and if
> any still do not support unicode it'll be trivial to roll your own
> replacements for the bad ones.
>
More information about the Digitalmars-d-announce
mailing list