I guess on ARM, char is unsigned whereas char is signed in most
platforms. to workaround, it needs to change
typedef char C to typedef signed char C
Вск, 27 Май 2012, bill lam писал(а):
I tested it ok under android-x86.
Сбт, 26 Май 2012, Paul Jackson писал(а):
The error is that Android J gives
3 u: 7 u: 226 141 186 32 195 151 32 226 141 181{ a.
226 141 186 32 195 151 32 226 141 181
Whereas, it should give
9082 32 215 32 9077
as Windows does.
As a result, it also returns a char instead of a wchar, thus
3!:0
returns 2 instead of 131072. And also
#
returns 10 instead of 5.
Or to respond directly to your request, in Windows:
utf8=: 226 141 186 32 195 151 32 226 141 181{ a.
3 u: 7 u: utf8
9082 32 215 32 9077
3 u: 4 u: 9082 32 215 32 9077
9082 32 215 32 9077
In Android.../dist/j-console-1.0.4.apk
utf8=: 226 141 186 32 195 151 32 226 141 181{ a.
3 u: 7 u: utf8
226 141 186 32 195 151 32 226 141 181
3 u: 4 u: 9082 32 215 32 9077
9082 32 215 32 9077
Paul
On May 26, 2012 4:21 PM, bill lam bbill@gmail.com wrote:
I cannot understand your tests. can you just use 3u: to print the
codepoint
for both window and android
eg,
3 u: 7 u: utf8
3 u: 4 u: 9082 32 215 32 9077
Сбт, 26 Май 2012, Paul Jackson писал(а):
NB. On Android .../dist/j-console-1.0.4.apk
NB. 7 u:returns the right argument, regardless of its values.
NB. Executing the following explains what should happen
NB. On Windows, when the display font includes APL characters
NB. the following UTF-8 sequence displays alpha times omega
]utf8=: 226 141 186 32 195 151 32 226 141 181{ a.
(3!:0 , #) u7=: 7 u: utf8NB. Should
be
131072 5
(3!:0 , #) u4=: 4 u: 9082 32 215 32 9077 NB. u4 is what u7 should be
u7-: u4
NB.
Both work on Windows
utf8-: 8 u: u4 NB.
Works on Android
Paul
--
For information about J forums see http://www.jsoftware.com/forums.htm
--
regards,
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
--
For information about J forums see http://www.jsoftware.com/forums.htm
--
For information about J forums see http://www.jsoftware.com/forums.htm
--
regards,
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
--
regards,
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
--
For information about J forums see http://www.jsoftware.com/forums.htm