Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-4227

Grails 1.3.1 groovysh render incorrect char encoding in prompt and messages

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.2
    • 1.7.3, 1.8-beta-1
    • Groovysh
    • None
    • Windows vista SP 2
      Grails 1.3.1

    Description

      Hi, the issue is related to appearance. In the output there are chars in a incorrect encoding i think:

      ←[32mGroovy Shell←[m (1.7.2, JVM: 1.6.0_18)
      Type '←[1mhelp←[m' or '←[1m\h←[m' for help.
      -------------------------------------------------------------------------------
      ←[1mgroovy:←[m000←[1m>←[m help

      For information about ←[32mGroovy←[m, visit:
      ←[36mhttp://groovy.codehaus.org←[m

      Available commands:
      ←[1mhelp ←[m (←[1m\h ←[m) Display this help message
      ←[1m? ←[m (←[1m? ←[m) Alias to: ←[1mhelp←[m
      ←[1mexit ←[m (←[1m\x ←[m) Exit the shell
      ←[1mquit ←[m (←[1m\q ←[m) Alias to: ←[1mexit←[m
      ←[1mimport ←[m (←[1m\i ←[m) Import a class into the namespace
      ←[1mdisplay ←[m (←[1m\d ←[m) Display the current buffer
      ←[1mclear ←[m (←[1m\c ←[m) Clear the buffer
      ←[1mshow ←[m (←[1m\S ←[m) Show variables, classes or imports
      ←[1minspect ←[m (←[1m\n ←[m) Inspect a variable or the last result with the G
      UI object browser
      ←[1mpurge ←[m (←[1m\p ←[m) Purge variables, classes, imports or preferences

      ←[1medit ←[m (←[1m\e ←[m) Edit the current buffer
      ←[1mload ←[m (←[1m\l ←[m) Load a file or URL into the buffer
      ←[1m. ←[m (←[1m\. ←[m) Alias to: ←[1mload←[m
      ←[1msave ←[m (←[1m\s ←[m) Save the current buffer to a file
      ←[1mrecord ←[m (←[1m\r ←[m) Record the current session to a file
      ←[1mhistory ←[m (←[1m\H ←[m) Display, manage and recall edit-line history
      ←[1malias ←[m (←[1m\a ←[m) Create an alias
      ←[1mset ←[m (←[1m\= ←[m) Set (or list) preferences
      ←[1mregister←[m (←[1m\rc←[m) Registers a new command with the shell

      For help on a specific command type:
      help ←[1mcommand←[m

      -Some system properties could be util:

      grails.version=1.3.1
      sun.boot.library.path=C:\Program Files\Java\jdk1.6.0_18\jre\bin
      java.vm.version=16.0-b13
      grails.env=development
      java.vm.name=Java HotSpot(TM) Client VM
      file.encoding.pkg=sun.io
      user.country=ES
      sun.os.patch.level=Service Pack 2
      java.runtime.version=1.6.0_18-b07
      grails.env.set=true
      user.variant=
      os.name=Windows Vista
      tools.jar=C:\Program Files\Java\jdk1.6.0_18\lib\tools.jar
      sun.jnu.encoding=Cp1252
      disable.grails.plugin.transform=false
      os.version=6.0
      user.timezone=Europe/Paris
      file.encoding=UTF-8
      java.specification.version=1.6
      grails.env.default=true
      java.vm.specification.version=1.0
      sun.arch.data.model=32
      user.language=es
      java.specification.vendor=Sun Microsystems Inc.
      awt.toolkit=sun.awt.windows.WToolkit
      java.version=1.6.0_18
      sun.io.unicode.encoding=UnicodeLittle
      groovy.starter.conf=\Users\atreyu\dev\java\grails\grails-1.3.1\conf\groovy-start
      er.conf

      Attachments

        Activity

          People

            roshandawrani Roshan Dawrani
            jneira Javier Neira Sanchez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: