An experiment:
(J602-64 IJX)
    9!:6''
┌┬┐├┼┤└┴┘│─
    x=:9!:6''
    $x
11

(J701-64 jconsole with copy and paste from J602 IJX)
    x=:'┌┬┐├┼┤└┴┘│─'
    $x
11
    9!:7 x

(J602-64 IJX with copy and paste of email content)
    y=:'┌┬┐├┼┤└┴┘│─'
    $y
33

So I either needed to explain the copy and paste process or use your code for 
my 
example to be reliable.


On 10/29/2010 11:22, bill lam wrote:
> The string argument you pasted is a 33-bytes utf8 string, but 9!:7 expects
> a string of 11 bytes. so that it will raise a length error.  I'm puzzled
> why you didn't get that error.
>
> Птн, 29 Окт 2010, David Mitchell писал(а):
>> I suppose your way is simpler.  I copied and pasted the results of 9!:6'' 
>> from a
>> J602 IJX window to the j701 jconsole window.  It worked fine for me.
>>
>> On 10/29/2010 10:27, bill lam wrote:
>>> I guess you meant 9!:7 (16+i.11){a.
>>>
>>>
>>> Птн, 29 Окт 2010, David Mitchell писал(а):
>>>> If it is a bug, it seems to have been fixed.
>>>>
>>>> J701 jconsole does not have the problem mentioned here. J602 jconsole does 
>>>> have
>>>> this problem.
>>>>
>>>> Here are the results of my tests with j701 jconsole :
>>>>
>>>>       a:
>>>> ++
>>>> ||
>>>> ++
>>>>       9!:6''
>>>> +++++++++|-
>>>>
>>>>       9!:7'┌┬┐├┼┤└┴┘│─'
>>>>
>>>>       9!:6''
>>>> ┌┬┐├┼┤└┴┘│─
>>>>       a:
>>>> ┌┐
>>>> ││
>>>> └┘
>>>>
>>>> I did not have to make any changes to the default j701 setup (other than 
>>>> 9!:7)
>>>> for it to be able to display the box drawing characters.
>>>>
>>>> On 10/28/2010 20:22, bill lam wrote:
>>>>> Will it be a bug of jconsole that it does not use wide version api for 
>>>>> text
>>>>> output? Window codepage are used by legacy non-unicode programs.
>>>>>
>>>>> Чтв, 28 Окт 2010, David Mitchell писал(а):
>>>>>> This works for me on win7-64 (corrected):
>>>>>>
>>>>>> 1. Create a new shortcut icon.
>>>>>> 2. Change the Target property of the icon to:
>>>>>>
>>>>>> C:\Windows\System32\cmd.exe /K "chcp 65001&&    cd 
>>>>>> C:\Users\me\j64-602\bin&&
>>>>>> jconsole"
>>>>>>
>>>>>> 3. Select the Shortcut Key property of the icon.
>>>>>> 4. Type Ctrl+Alt+j
>>>>>> 5. Make sure the shortcut font is set to Lucida Console.
>>>>>> 6. Close the icon properties.
>>>>>>
>>>>>>
>>>>>> Now, any time I type Ctrl+Alt+j, I get a new jconsole window that is 
>>>>>> using
>>>>>> codepage 65001 and that displays a: using the box drawing characters.
>>>>>>
>>>>>> --
>>>>>> David Mitchell
>>>>>>
>>>>>> On 10/28/2010 9:41, Tracy Harms wrote:
>>>>>>> Thanks, Raul.
>>>>>>>
>>>>>>> The command 'chcp 65001' does make the box-drawing work right if I 
>>>>>>> launch
>>>>>>> cmd.exe, execute chcp 65001, then execute jconsole.exe within that 
>>>>>>> window.
>>>>>>> That's an improvement.
>>>>>>>
>>>>>>> What I was hoping, though, is to have jconsole.exe open directly and 
>>>>>>> work. I
>>>>>>> defined a key on my keyboard such that a jconsole.exe window opens at 
>>>>>>> the
>>>>>>> touch of that button. This puts me, in effect, in the same mode as 
>>>>>>> after I
>>>>>>> run jconsole.exe in a command-line window. At that point it's too late 
>>>>>>> to
>>>>>>> use chcp 65001.
>>>>>>>
>>>>>>> So far I don't see any way to have chcp 65001 be a default setting for
>>>>>>> command-line mode. That's what I think it would take for 
>>>>>>> directly-launched
>>>>>>> jconsole.exe windows to support box display properly.
>>>>>>>
>>>>>>> --
>>>>>>> Tracy
>>>>>>>
>>>>>>>
>>>>>>> On Tue, Oct 26, 2010 at 4:54 PM, Raul Miller<[email protected]>     
>>>>>>> wrote:
>>>>>>>
>>>>>>>> ...
>>>>>>>> I think the problem is cmd.exe
>>>>>>>>
>>>>>>>> They display fine for me, when I run jconsole in my usual
>>>>>>>> environment (windows 7, 64 bit, mintty cygwin window).
>>>>>>>> But I get the same thing you get if I run jconsole in a cmd
>>>>>>>> window.
>>>>>>>> ...
>>>>>>>>
>>>>>>>>
>>>>>>>> http://cbloomrants.blogspot.com/2010/06/06-07-10-unicode-cmd-code-page-checkup.html
>>>>>>>> suggests that chcp 65001 will fix the problem, and this
>>>>>>>> worked for me after I changed my cmd.exe font from
>>>>>>>> raster fonts to lucidia console.
>>>>>>>>
>>>>>>>> FYI,
>>>>>>>>
>>>>>>>> --
>>>>>>>> Raul
>>>>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to