VOGONS


First post, by YaShum

User metadata
Rank Newbie
Rank
Newbie

The problem with the Russian language in DOSBox
For a long time I could not understand the problem, after Russification DOSBox had unreadable hieroglyphs (encoding error).
It turned out that in the settings the parameter "keyboardlayout=auto" should be changed to "keyboardlayout=ru".
[ Please note that the configuration file is hidden for some reason in C:\Documents and Settings\User\Local Settings\Application Data\DOSBox\dosbox-0.74.conf ]
I hope I helped you =)
--------------------------------------------------
Проблема с русским языком в DOSBox.
Долго не мог понять в чём проблема, после русификации в DOSBox появлялись нечитаемые иероглифы (ошибка кодировки).
Оказалось, что в настройках параметр "keyboardlayout=auto" нужно изменить на "keyboardlayout=ru".
[ Обратите внимание, что файл настроек почему-то спрятали в C:\Documents and Settings\User\Local Settings\Application Data\DOSBox\dosbox-0.74.conf ]
Надеюсь, я помог вам =)

Reply 1 of 2, by ivan-tat

User metadata
Rank Newbie
Rank
Newbie

The available for download Russian translation files for DOSBox version 0.74 have some codepage issues under GNU/Linux. I wrote a simple script to adapt them. This script downloads and converts original localization files into UTF-8 encoding where needed. I hope, I helped you.
--------------------------------------------------
Доступные для скачивания файлы русификации DOSBox версии 0.74 имеют проблему с кодировкой в GNU/Linux. Я написал маленький скрипт для их адаптирования. Этот скрипт скачивает и преобразует файлы локализации в кодировку UTF-8 там где это нужно. Надеюсь, я вам помог.

#!/bin/sh
# Convert DosBox configuration files to UTF-8 for use in GNU/Linux.
# Uses: coreutils, wget, sha256sum, unzip, iconv, sed.
set -e
_language=russian
_layout=ru
_codepage=cp1251
_zip=DOSBox-$_language-lang-074.zip
_config=dosbox-$_layout.conf
_langfile=$_language.txt
wget -nH -c 'http://www.dosbox.com/tools/'$_zip
sha256sum -c <<EOF
b239d0fc84d720205178cf8d84c159adca0f73cb2db07d515b3107c16ce3b331 $_zip
EOF
unzip -o $_zip dosbox.conf $_langfile
iconv -f $_codepage -t utf8 dosbox.conf | sed -E -e 's/^(language=).*/\1'$_langfile'/;s/^(keyboardlayout=).*/\1'$_layout'/' > $_config
rm dosbox.conf
echo "Saved: $_config"
tmp=$(mktemp)
head -n 251 $_langfile | iconv -f $_codepage -t utf8 > $tmp
tail -n +252 $_langfile >> $tmp
mv $tmp $_langfile
echo "Saved: $_langfile"
echo 'Done.'

Reply 2 of 2, by beenelli

User metadata
Rank Newbie
Rank
Newbie
YaShum wrote on 2017-09-18, 19:07:
The problem with the Russian language in DOSBox For a long time I could not understand the problem, after Russification DOSBox h […]
Show full quote

The problem with the Russian language in DOSBox
For a long time I could not understand the problem, after Russification DOSBox had unreadable hieroglyphs (encoding error).
It turned out that in the settings the parameter "keyboardlayout=auto" should be changed to "keyboardlayout=ru".
[ Please note that the configuration file is hidden for some reason in C:\Documents and Settings\User\Local Settings\Application Data\DOSBox\dosbox-0.74.conf ]
I hope I helped you =)
--------------------------------------------------
Проблема с русским языком в DOSBox.
Долго не мог понять в чём проблема, после русификации в DOSBox появлялись нечитаемые иероглифы (ошибка кодировки).
Оказалось, что в настройках параметр "keyboardlayout=auto" нужно изменить на "keyboardlayout=ru".
[ Обратите внимание, что файл настроек почему-то спрятали в C:\Documents and Settings\User\Local Settings\Application Data\DOSBox\dosbox-0.74.conf ]
Надеюсь, я помог вам =)

Спасибо, помогло!
----------------
Thanks, it helped!