* coding system and gdb
@ 2015-07-08 16:23 Rusi
2015-07-08 16:56 ` Eli Zaretskii
` (3 more replies)
0 siblings, 4 replies; 9+ messages in thread
From: Rusi @ 2015-07-08 16:23 UTC (permalink / raw)
To: help-gnu-emacs
Some students of mine are working on a hand-compiled python and debugging with gdb in emacs.
Unicode characters dont seem to be flowing properly between (inferior) python and
emacs; seems to work better when python is started outside emacs.
Is there some process-related-coding-system that is to be set for gdb?
How/When/Where?
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: coding system and gdb
2015-07-08 16:23 coding system and gdb Rusi
@ 2015-07-08 16:56 ` Eli Zaretskii
[not found] ` <mailman.6562.1436374619.904.help-gnu-emacs@gnu.org>
` (2 subsequent siblings)
3 siblings, 0 replies; 9+ messages in thread
From: Eli Zaretskii @ 2015-07-08 16:56 UTC (permalink / raw)
To: help-gnu-emacs
> Date: Wed, 8 Jul 2015 09:23:39 -0700 (PDT)
> From: Rusi <rustompmody@gmail.com>
>
> Some students of mine are working on a hand-compiled python and debugging with gdb in emacs.
> Unicode characters dont seem to be flowing properly between (inferior) python and
> emacs; seems to work better when python is started outside emacs.
>
> Is there some process-related-coding-system that is to be set for gdb?
>
> How/When/Where?
Please provide some minimal details about the GDB commands you tried,
and their results. GDB is generally agnostic to encoding issues, it's
all just data for it, so I'm having hard time guessing what exactly
didn't work for your students.
In general, process-coding-system-alist is the feature you are
supposed to use to set up encoding for communicating with processes,
in case the locale's defaults aren't TRT.
^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <mailman.6562.1436374619.904.help-gnu-emacs@gnu.org>]
* Re: coding system and gdb
[not found] ` <mailman.6562.1436374619.904.help-gnu-emacs@gnu.org>
@ 2015-07-08 17:09 ` Rusi
2015-07-08 19:44 ` Eli Zaretskii
0 siblings, 1 reply; 9+ messages in thread
From: Rusi @ 2015-07-08 17:09 UTC (permalink / raw)
To: help-gnu-emacs
On Wednesday, July 8, 2015 at 10:27:02 PM UTC+5:30, Eli Zaretskii wrote:
> > Date: Wed, 8 Jul 2015 09:23:39 -0700 (PDT)
> > From: Rusi
> >
> > Some students of mine are working on a hand-compiled python and debugging with gdb in emacs.
> > Unicode characters dont seem to be flowing properly between (inferior) python and
> > emacs; seems to work better when python is started outside emacs.
> >
> > Is there some process-related-coding-system that is to be set for gdb?
> >
> > How/When/Where?
>
> Please provide some minimal details about the GDB commands you tried,
> and their results. GDB is generally agnostic to encoding issues, it's
> all just data for it, so I'm having hard time guessing what exactly
> didn't work for your students.
>
> In general, process-coding-system-alist is the feature you are
> supposed to use to set up encoding for communicating with processes,
> in case the locale's defaults aren't TRT.
I'll find out more details and repost.
For now Ive this mail from them:
--------
I tried a='ब' in emacs gdb but it is interpreting it as. a= ' ' and it is not
printing anything when we do print(a) but it is printing correctly in terminal
with our compiled python.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: coding system and gdb
2015-07-08 17:09 ` Rusi
@ 2015-07-08 19:44 ` Eli Zaretskii
0 siblings, 0 replies; 9+ messages in thread
From: Eli Zaretskii @ 2015-07-08 19:44 UTC (permalink / raw)
To: help-gnu-emacs
> Date: Wed, 8 Jul 2015 10:09:55 -0700 (PDT)
> From: Rusi <rustompmody@gmail.com>
>
> I tried a='ब' in emacs gdb but it is interpreting it as. a= ' ' and it is not
> printing anything when we do print(a) but it is printing correctly in terminal
> with our compiled python.
That leaves out too many important details. Like was a='ब' typed at
the program's prompt or at GDB's prompt, and what exactly does "in
terminal" mean.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: coding system and gdb
2015-07-08 16:23 coding system and gdb Rusi
2015-07-08 16:56 ` Eli Zaretskii
[not found] ` <mailman.6562.1436374619.904.help-gnu-emacs@gnu.org>
@ 2015-07-08 17:47 ` tomas
2015-07-08 19:47 ` Eli Zaretskii
[not found] ` <mailman.6568.1436377660.904.help-gnu-emacs@gnu.org>
3 siblings, 1 reply; 9+ messages in thread
From: tomas @ 2015-07-08 17:47 UTC (permalink / raw)
To: Rusi; +Cc: help-gnu-emacs
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, Jul 08, 2015 at 09:23:39AM -0700, Rusi wrote:
> Some students of mine are working on a hand-compiled python and debugging with gdb in emacs.
> Unicode characters dont seem to be flowing properly between (inferior) python and
> emacs; seems to work better when python is started outside emacs.
>
> Is there some process-related-coding-system that is to be set for gdb?
Locale from the environment? I.e. the value of LANG?
- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlWdYjUACgkQBcgs9XrR2kbPKwCeMxDGE6BZRpZWP5kj/7bMBuMQ
8m8AnAttMaTlrFla6ffEh0rFp9vOK7Op
=67WS
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <mailman.6568.1436377660.904.help-gnu-emacs@gnu.org>]
* Re: coding system and gdb
[not found] ` <mailman.6568.1436377660.904.help-gnu-emacs@gnu.org>
@ 2015-07-09 17:11 ` Rusi
2015-07-09 17:39 ` Eli Zaretskii
[not found] ` <mailman.6623.1436463582.904.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 9+ messages in thread
From: Rusi @ 2015-07-09 17:11 UTC (permalink / raw)
To: help-gnu-emacs
On Wednesday, July 8, 2015 at 11:17:42 PM UTC+5:30, tomas wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Wed, Jul 08, 2015 at 09:23:39AM -0700, Rusi wrote:
> > Some students of mine are working on a hand-compiled python and debugging with gdb in emacs.
> > Unicode characters dont seem to be flowing properly between (inferior) python and
> > emacs; seems to work better when python is started outside emacs.
> >
> > Is there some process-related-coding-system that is to be set for gdb?
>
> Locale from the environment? I.e. the value of LANG?
As you seem to have guessed it was not one of the UTF-8 variants.
[I could have sworn I had set that right the last time I met them...Seem to be losing my memory...
]
And what exactly is the difference between LANG and LANGUAGE?
I am just assuming all the LC_* can be left unset (and inferred?)
Its all a bit arcane to me!
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2015-07-11 17:01 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-08 16:23 coding system and gdb Rusi
2015-07-08 16:56 ` Eli Zaretskii
[not found] ` <mailman.6562.1436374619.904.help-gnu-emacs@gnu.org>
2015-07-08 17:09 ` Rusi
2015-07-08 19:44 ` Eli Zaretskii
2015-07-08 17:47 ` tomas
2015-07-08 19:47 ` Eli Zaretskii
[not found] ` <mailman.6568.1436377660.904.help-gnu-emacs@gnu.org>
2015-07-09 17:11 ` Rusi
2015-07-09 17:39 ` Eli Zaretskii
[not found] ` <mailman.6623.1436463582.904.help-gnu-emacs@gnu.org>
2015-07-11 17:01 ` Rusi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).