System properties
Andrew Thompson
lordpixel at me.com
Wed Jun 20 19:04:14 PDT 2012
So when al is said and done on this thread I think our conclusion was this needs to be in the Release notes. How would one file a bug requesting that? Is it important to get the right component?
On Jun 8, 2012, at 10:10 PM, Andrew Thompson <lordpixel at me.com> wrote:
>
> On May 27, 2012, at 6:46 PM, Michael Hall wrote:
>
>> Apple 1.6 never seems to give UTF-8 contrary to what Andrew said. It is always MacRoman. Either he was not accurate in what he said or is changing the property to UTF-8 somewhere that he isn't aware of it.
>
>
> Well now, that's interesting. Running locale and then my program again in the terminal I see
>
> % locale
> LANG="en_US.UTF-8"
> LC_COLLATE="en_US.UTF-8"
> LC_CTYPE="en_US.UTF-8"
> LC_MESSAGES="en_US.UTF-8"
> LC_MONETARY="en_US.UTF-8"
> LC_NUMERIC="en_US.UTF-8"
> LC_TIME="en_US.UTF-8"
> LC_ALL=
>
> %uname -a
> Darwin Bubbles.local 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64 x86_64
>
> % java -version
> java version "1.6.0_31"
> Java(TM) SE Runtime Environment (build 1.6.0_31-b04-415-11M3635)
> Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01-415, mixed mode)
>
> java -cp . FileEncoding
> MacRoman
> java.vm.version: 20.6-b01-415
> file.encoding.pkg: sun.io
> java.runtime.version: 1.6.0_31-b04-415-11M3635
> java.io.tmpdir: /var/folders/3l/yd1xg64n58l4ll7jnhvc0glm0000gq/T/
> sun.jnu.encoding: MacRoman
> java.class.version: 50.0
> os.version: 10.7.3
> file.encoding: MacRoman
> java.specification.version: 1.6
> java.vm.specification.version: 1.0
> java.version: 1.6.0_31
> file.separator: /
> sun.io.unicode.encoding: UnicodeLittle
> mrj.version: 1070.1.6.0_31-415
>
> => Mac Roman
>
> Running the very same program in Netbeans... which as far as I know execs Java
>
> UTF-8
> java.vm.version: 20.6-b01-415
> file.encoding.pkg: sun.io
> java.runtime.version: 1.6.0_31-b04-415-11M3635
> java.io.tmpdir: /var/folders/3l/yd1xg64n58l4ll7jnhvc0glm0000gq/T/
> sun.jnu.encoding: MacRoman
> java.class.version: 50.0
> os.version: 10.7.3
> file.encoding: UTF-8
> java.specification.version: 1.6
> java.vm.specification.version: 1.0
> java.version: 1.6.0_31
> file.separator: /
> sun.io.unicode.encoding: UnicodeLittle
> mrj.version: 1070.1.6.0_31-415
>
> => UTF8
>
> And yet Netbeans' own About window shows
>
> Product Version: NetBeans IDE 7.0.1 (Build 201107282000)
> Java: 1.6.0_31; Java HotSpot(TM) 64-Bit Server VM 20.6-b01-415
> System: Mac OS X version 10.7.3 running on x86_64; MacRoman; en_US (nb)
> Userdir: /Users/pixel/.netbeans/7.0
>
> => MacRoman
>
>
> So this is very strange. The same program can return MacRoman in the Terminal and UTF-8 in Netbeans.
> There's more to this than first appears.
>
>
> AndyT (lordpixel - the cat who walks through walls)
> A little bigger on the inside
>
> (see you later space cowboy, you can't take the sky from me)
>
>
AndyT (lordpixel - the cat who walks through walls)
A little bigger on the inside
(see you later space cowboy, you can't take the sky from me)
More information about the macosx-port-dev
mailing list