LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-11-2012, 02:14 AM   #1
kea_kea
Member
 
Registered: Mar 2006
Posts: 35

Rep: Reputation: 3
Dosemu-1.4.0.0 charset problem


Hi,

I've just installed dosemu 1.4.0 on Slackware 13.37. In ~/.dosemu.rc I have these settings:

$_internal_char_set = "cp437"
$_layout = "hu-cwi"

which would mean that I use a Hungarian keyboard layout and a rather old charset setting. The layout works but it does NOT produce the chars it should. E.g. pressing the key right to P produces an 'i umlaut' instead of 'o circumflex'. If I use Alt+147, it will give the required 'o circ', which is used instead of 'o having double acutes', traditionally. Whatever internal char set I set in ~/.dosemu.rc, the situation remains the same. In boot.log I see only:

CONF: Keyboard-layout keyb-user

which does not mean too much for me.

If you could tell me, what the problem is, and how I could get rid of it, I would be glad. I've been using dosemu for many years but never had a problem like this. Thx in advance, KEA.
 
Old 02-11-2012, 02:54 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,260

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
cp437 is en_US

Have a look HERE to see what ciodepage you should be using.
 
Old 02-11-2012, 03:25 AM   #3
kea_kea
Member
 
Registered: Mar 2006
Posts: 35

Original Poster
Rep: Reputation: 3
I need codepage 437 (original IBM PC DOS char set). The problem is, however, that the keyboard layout is good while the charset is not cp437. If it were, according to the config file, cp473 it would produce an 'o circumflex' instead of 'i umlaut' when the key right to P was pressed. And whatever internal code page is set in .dosemu.rc, the result is the same 'i umlaut'. This mean as if dosemu did not take into consideration the given option ($_internal_char_set).
 
Old 02-12-2012, 09:21 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,260

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
dos was never much good at that. The different keyboards have different ascii in them, and so give out different codes for the same key being pressed. BTW last I heard of dosemu, it was dead as a project. People were using dosbox. Did someone revive it?
/showing my age
Back in the day there was something called ansi.sys which people used to fart about with charsets. It was loaded in config.sys
device=ansi.sys

cp437 is for The Excited States. I don't think the average business user envisioned by IBM for cp437 _knew_ a circumflex from an umlaut. If you have circumflex/umlaut trouble on cp437, use cp850 (Basically the same).

Last edited by business_kid; 02-12-2012 at 09:35 AM.
 
Old 02-14-2012, 02:45 AM   #5
kea_kea
Member
 
Registered: Mar 2006
Posts: 35

Original Poster
Rep: Reputation: 3
Hi,

it seems as if user configuration settings were not able to override system config. I changed the charset setting in /etc/dosemu/dosemu.conf and it works. It worked well on a Slackware 13.0 box, where I had installed dosemu from source (long ago). It was installed as a system-wide application (into /usr/local/bin/), so I used /etc/dosemu/dosemu.conf for the settings. On my home machine, which is a Slackware 13.37 I set up a binary dosemu (per-user application), but having the default /etc/dosemu/dosemu.conf I could not succeed with the user-level config of the internal char set. If someone is interested in this (in the future), he/she can test this behaviour. Best regards to everone! KEA.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Charset problem UltraSoul Linux - Software 0 09-24-2008 04:26 AM
Problem with charset on Suse eduac Linux - Software 1 03-14-2006 06:19 AM
DosEmu problem marcosmw Linux - Software 0 08-28-2005 07:42 PM
charset problem.... freakymark Slackware 1 07-07-2003 11:33 AM
KDE charset problem parapente Linux - General 5 02-27-2002 08:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration