qnx4 french

Hello all:
I’ve got a qnx4 box on its way to quebec and
have added:
kbd /etc/config/kbd/CanadaFrench
and:
export KBD=fr_CA_102.kbd
to the sysinit. The box boots into qnx and
the keyboard is indeed french yet when photon is launched the keyboard is
back to US.
Can anyone help?
Thx
Jim Kuzniar

Jim Kuzniar wrote:

I’ve got a qnx4 box on its way to quebec and
have added:
kbd /etc/config/kbd/CanadaFrench
and:
export KBD=fr_CA_102.kbd
to the sysinit. The box boots into qnx and
the keyboard is indeed french yet when photon is launched the keyboard is
back to US.

How are you launching Photon? If you start a pterm, what does “echo
$KBD” say in the pterm?

Logged into OS as root, ph.
pterm echo $KBD = fr_CA_102.kbd
??

“Wojtek Lerch” <Wojtek_L@yahoo.ca> wrote in message
news:cj959s$adh$1@inn.qnx.com

Jim Kuzniar wrote:
I’ve got a qnx4 box on its way to quebec and
have added:
kbd /etc/config/kbd/CanadaFrench
and:
export KBD=fr_CA_102.kbd
to the sysinit. The box boots into qnx and
the keyboard is indeed french yet when photon is launched the keyboard
is
back to US.

How are you launching Photon? If you start a pterm, what does “echo
$KBD” say in the pterm?

My guess is that the KBD envar gets undefined when you log in. If you
run “echo $KBD” in the text-mode shell right after logging in, before
running ph, does it say “fr_CA_102.kbd” or nothing? Is KBD mentioned in
your /etc/default/login file?

Jim Kuzniar wrote:

Logged into OS as root, ph.
pterm echo $KBD = fr_CA_102.kbd
??

I’m not sure how to interpret this. Does something actually print out
two question marks?

What I meant was that you open a pterm with a shell in it, and type the
command “echo $KBD” in the pterm, expecting that the output would be
either nothing or “fr_CA_102.kbd”…

“Wojtek Lerch” <> Wojtek_L@yahoo.ca> > wrote in message
news:cj959s$adh$> 1@inn.qnx.com> …

Jim Kuzniar wrote:

I’ve got a qnx4 box on its way to quebec and
have added:
kbd /etc/config/kbd/CanadaFrench
and:
export KBD=fr_CA_102.kbd
to the sysinit. The box boots into qnx and
the keyboard is indeed french yet when photon is launched the keyboard

is

back to US.

How are you launching Photon? If you start a pterm, what does “echo
$KBD” say in the pterm?

In the sysinit I have:
kbd /etc/config/kbd/CanadaFrench
export KBD=fr_CA_102.kbd

reboot, log into os as root,
echo $KBD returns fr_CA_102.kbd
the / key now returns eagrave as is should on a french keyboard

launch photon via ph
open a pterm
echo $KBD returns fr_CA_102.kbd
the / key returns / grrrr…

I’ve added export KBD=fr_CA_102.kbd
to the /etc/default/login file and
the /usr/root/.kshrc file
grrr…


“Wojtek Lerch” <Wojtek_L@yahoo.ca> wrote in message
news:cj9jv8$adh$2@inn.qnx.com

My guess is that the KBD envar gets undefined when you log in. If you
run “echo $KBD” in the text-mode shell right after logging in, before
running ph, does it say “fr_CA_102.kbd” or nothing? Is KBD mentioned in
your /etc/default/login file?

Jim Kuzniar wrote:
Logged into OS as root, ph.
pterm echo $KBD = fr_CA_102.kbd
??

I’m not sure how to interpret this. Does something actually print out
two question marks?

What I meant was that you open a pterm with a shell in it, and type the
command “echo $KBD” in the pterm, expecting that the output would be
either nothing or “fr_CA_102.kbd”…

“Wojtek Lerch” <> Wojtek_L@yahoo.ca> > wrote in message
news:cj959s$adh$> 1@inn.qnx.com> …

Jim Kuzniar wrote:

I’ve got a qnx4 box on its way to quebec and
have added:
kbd /etc/config/kbd/CanadaFrench
and:
export KBD=fr_CA_102.kbd
to the sysinit. The box boots into qnx and
the keyboard is indeed french yet when photon is launched the keyboard

is

back to US.

How are you launching Photon? If you start a pterm, what does “echo
$KBD” say in the pterm?

OK, so we have ruled out the possibility that the environment variable
gets unset before Input runs. This means that Input knows that you want
it to load a file called fr_CA_102.kbd, but fails to either find it or
load it.

What happens if you run the following command in a pterm:

slay -f Input; KBD=fr_CA_102.kbd inputtrap -VVV start

Jim Kuzniar wrote:

In the sysinit I have:
kbd /etc/config/kbd/CanadaFrench
export KBD=fr_CA_102.kbd

reboot, log into os as root,
echo $KBD returns fr_CA_102.kbd
the / key now returns eagrave as is should on a french keyboard

launch photon via ph
open a pterm
echo $KBD returns fr_CA_102.kbd
the / key returns / grrrr…

I’ve added export KBD=fr_CA_102.kbd
to the /etc/default/login file and
the /usr/root/.kshrc file
grrr…

As my kids would say “You Da Man”
it wants fr_CA_102.kbd in /etc/config/kbd

Now how about this one, oh kbd master
Can I flip between en_US_101, fr_CA_102 and es_ES_102 on
the fly through my photon app?


Wojtek Lerch wrote:

OK, so we have ruled out the possibility that the environment variable
gets unset before Input runs. This means that Input knows that you want
it to load a file called fr_CA_102.kbd, but fails to either find it or
load it.

What happens if you run the following command in a pterm:

slay -f Input; KBD=fr_CA_102.kbd inputtrap -VVV start

Jim Kuzniar wrote:

In the sysinit I have:
kbd /etc/config/kbd/CanadaFrench
export KBD=fr_CA_102.kbd

reboot, log into os as root,
echo $KBD returns fr_CA_102.kbd
the / key now returns eagrave as is should on a french keyboard

launch photon via ph
open a pterm
echo $KBD returns fr_CA_102.kbd
the / key returns / grrrr…

I’ve added export KBD=fr_CA_102.kbd
to the /etc/default/login file and
the /usr/root/.kshrc file
grrr…

Jim Kuzniar wrote:

Can I flip between en_US_101, fr_CA_102 and es_ES_102 on
the fly through my photon app?

Yes, there’s an app called kbsel that lets you do that.

Ya I was hoping for something a little more transparent
to the use via a radio button etc.
Thx anyway
Jim

Wojtek Lerch wrote:

Jim Kuzniar wrote:

Can I flip between en_US_101, fr_CA_102 and es_ES_102 on
the fly through my photon app?


Yes, there’s an app called kbsel that lets you do that.

Jim Kuzniar <jkuzniar@viewtrak.com> wrote:

Ya I was hoping for something a little more transparent
to the use via a radio button etc.

Right a little photon app that runs kbsel based on a radio button?

:slight_smile:

-David

Thx anyway
Jim

Wojtek Lerch wrote:

Jim Kuzniar wrote:

Can I flip between en_US_101, fr_CA_102 and es_ES_102 on
the fly through my photon app?


Yes, there’s an app called kbsel that lets you do that.


David Gibbs
QNX Training Services
dagibbs@qnx.com

Sure, but why subject the user to another set of choices
based on a mutually exclusive group of radio buttons,
English
French
Spanish
when my photon app could just do whatever it is
kbsel does?

Seems kinda redundant don’t ya think?
Oughta be some source out there somewhere??

Jim


“David Gibbs” <dagibbs@qnx.com> wrote in message
news:cjclbj$1v8$2@inn.qnx.com

Jim Kuzniar <> jkuzniar@viewtrak.com> > wrote:
Ya I was hoping for something a little more transparent
to the use via a radio button etc.

Right a little photon app that runs kbsel based on a radio button?

:slight_smile:

-David

Thx anyway
Jim

Wojtek Lerch wrote:

Jim Kuzniar wrote:

Can I flip between en_US_101, fr_CA_102 and es_ES_102 on
the fly through my photon app?


Yes, there’s an app called kbsel that lets you do that.

\

David Gibbs
QNX Training Services
dagibbs@qnx.com