Jump to content

trouble with russian filenames in Redhat Linux Fedora 14


roman_gemini

Recommended Posts

I'm using Redhat Linux Fedora 14 and last utserver bin. When I'm trying to download some torrent with russian filenames, on disk I see only "??????" instread of russian characters. How to fix this?

Ensure you are using the latest release (23090 - you should see the revision number of your installation in the web UI by pressing F2 to display the about box). There is a known issue with Cyrillic characters (among others) in previous releases, and one person using Cyrillic has reported success with the latest release. Please post a response so I can have more data points on how Cyrillic character support is working with the current release.

Link to comment
Share on other sites

Today i've got same problem!

Debian 5 lenny on headless server.

I'm sure I use latest release 23090 (since 20.11.2010).

Before today everything is ok, I only restart my old (alredy finished) downloads to seedings (they have torrent files with russian characters in filenames!).

Today I try to download new film and rename downloaded _torrent_ file using russian characters, i.e, replace [037bla-bla23984].torrent to "Волшебная сила искусства.torrent". Film was downloaded successfully, now it seeding, but _filename_ is " ????????? ???? ?????????.avi".

Strange for me, what then i'm use webui the filename is correct.

Sorry for my english. :(

Получил такую же проблему сегодня. Использую Debian Lenny на безмониторном сервере. Только удалённое управление через ssh и webui.

До сегодня я только запускал на раздачу старые загрузки, но сегодня решил закачать заново один из фильмов, при этом переименовал torrent, использовав русские буквы, т.е., вместо [037bla-bla23984].torrent назвал "Волшебная сила искусства.torrent". Фильм загрузился успешно и уже раздаётся, но файл назван "????????? ???? ?????????.avi".

Странно, что в webui имя показывается правильно: "Волшебная сила искусства.avi" :(

Link to comment
Share on other sites

Today I try to download new film and rename downloaded _torrent_ file using russian characters, i.e, replace [037bla-bla23984].torrent to "Волшебная сила искусства.torrent". Film was downloaded successfully, now it seeding, but _filename_ is " ????????? ???? ?????????.avi".

Strange for me, what then i'm use webui the filename is correct.

Do you have the appropriate locale(s) defined and specified for the application? What's the value of the LANG environment variable from the terminal where you start the application?

Link to comment
Share on other sites

Yes, always set:

# echo $LANG

ru_RU.UTF-8

For remote access I'm use Putty 0.60 and "traranslation" in it, too, is always set to UTF-8.

OK - useful information.

I forgot to ask last time: what's the first message displayed when you run utserver in the foreground from a terminal? In your case, it should say

server started - using locale ru_RU.UTF-8

I added that message to the latest release to help diagnose this sort of problem.

Link to comment
Share on other sites

Is it possible that this problem is because keeping any older conf. and settings files from previos releases?

I don't think so. Locale setup is handled on program startup, accepting the locale specified by the environment and other defaults external to the program (see man setlocale). The locale used isn't stored in configuration or settings files.

Link to comment
Share on other sites

I forgot to ask last time: what's the first message displayed when you run utserver in the foreground from a terminal? In your case, it should say

server started - using locale ru_RU.UTF-8

I added that message to the latest release to help diagnose this sort of problem.

~/utorrent-server# ./utserver

server started

IPv6 is installed

... nothing more

i'm sorry again, but i see on download page latest release is 3.0 build 23090 from november 17 and use it. :)

Link to comment
Share on other sites

~/utorrent-server# ./utserver
server started
IPv6 is installed

... nothing more

i'm sorry again, but i see on download page latest release is 3.0 build 23090 from november 17 and use it. :)

Did you ever try the following:

Ensure you are using the latest release (23090 - you should see the revision number of your installation in the web UI by pressing F2 to display the about box).

The startup message indicates that the utserver binary you are running is earlier than 23090. The startup message for 23090 looks like what I posted earlier:

server started - using locale ru_RU.UTF-8

Could you run

find / -type f -name utserver

to see if you have more than one installation?

Also, the size of 23090's utserver binary file is 921107. Can you compare this with the size of the binary file you are running?

Link to comment
Share on other sites

Ensure you are using the latest release (23090 - you should see the revision number of your installation in the web UI by pressing F2 to display the about box).

Okay, now I fetched the whole package again, reinstalled, recheсk all.

Oh, I forgot to tell you: Thank you very much for tech support and excellent program (small bugs I do not care :) ).

( translated by google translator )

Link to comment
Share on other sites

Ensure you are using the latest release (23090 - you should see the revision number of your installation in the web UI by pressing F2 to display the about box).

Okay' date=' now I fetched the whole package again, reinstalled, recheсk all.

Oh, I forgot to tell you: Thank you very much for tech support and excellent program (small bugs I do not care :) ).

[/quote']

Yes it WORKS!

After i'm rm all previousely installed version (including previousely unpacked webui) and then reinstall utserver from new downloaded package - it works fine. No troubles in webui when i'm restart daemon, my torrents from symlinked files and directories are start seeding and downloading successfully. And all russian characters in filenames are viewed as they must.

Thank you for this fine software!

Link to comment
Share on other sites

Yes it WORKS!

No troubles in webui when i'm restart daemon, my torrents from symlinked files and directories are start seeding and downloading successfully. And all russian characters in filenames are viewed as they must.

Thanks for reporting your successful results. Getting locales working correctly is a high-priority item for me.

Link to comment
Share on other sites

  • 2 months later...

(translate.google)

Hello!

The only problem when you run the script:

#! /bin/sh
#
# Copyright (c) 2005 John Doe
# All rights reserved.
#
# Author: John Doe, 2005
#
# /etc/init.d/utserver
# and its symbolic link
# /usr/sbin/rcutserver
#
### BEGIN INIT INFO
# Provides: utserver
# Required-Start: $network
# Required-Stop:
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Short-Description: utserver daemon, providing a bittorrent service
# Description: The utserver daemon is network bittorrent
# service. We want it to be active in runlevels 3
# and 5, as these are the runlevels with the network
# available.
### END INIT INFO
#
# Check for missing binaries
UT_BIN=/opt/utserver/bin/utserver
test -x $UT_BIN || { echo "$UT_BIN not installed";
if [ "$1" = "stop" ]; then exit 0;
else exit 5; fi; }

# Check for existence of needed config file and read it
UT_CONFIG=/etc/opt/utserver/utserver.conf
test -r $UT_CONFIG || { echo "$UT_CONFIG not existing";
if [ "$1" = "stop" ]; then exit 0;
else exit 6; fi; }

UT_PID=/var/run/utserver/utserver.pid
UT_SETTINGS=/var/opt/utserver/settings
UT_LOG=/var/opt/utserver/log/utserver.log

# Read config
#. $UT_CONFIG

#
# Load the rc.status script for this service.
. /etc/rc.status

# Reset status of this service
rc_reset

#

case "$1" in
start)
echo -n "Starting utserver "
## Start daemon with startproc(8). If this fails
## the return value is set appropriately by startproc.
#startproc -u 1001 -g 100 $UT_BIN
# su - -c /home/cool/bin/utserver.sh cool
startproc -p ${UT_PID} -u 1001 -g 100 ${UT_BIN} -configfile ${UT_CONFIG} -settingspath ${UT_SETTINGS} -logfile ${UT_LOG}

# Remember status and be verbose
rc_status -v
;;
stop)
echo -n "Shutting down utserver "
## Stop daemon with killproc(8) and if this fails
## killproc sets the return value according to LSB.

killproc -TERM ${UT_BIN}

# Remember status and be verbose
rc_status -v
;;
restart)
## Stop the service and regardless of whether it was
## running or not, start it again.
$0 stop
$0 start

# Remember status and be quiet
rc_status
;;
reload)
# If it supports signaling:
echo -n "Reload service utserver "
killproc -HUP ${UT_BIN}
#touch /var/run/UT.pid
rc_status -v

## Otherwise if it does not support reload:
#rc_failed 3
#rc_status -v
;;
status)
echo -n "Checking for service utserver "
## Check status with checkproc(8), if process is running
## checkproc will return with exit status 0.

# Return value is slightly different for the status command:
# 0 - service up and running
# 1 - service dead, but /var/run/ pid file exists
# 2 - service dead, but /var/lock/ lock file exists
# 3 - service not running (unused)
# 4 - service status unknown :-(
# 5--199 reserved (5--99 LSB, 100--149 distro, 150--199 appl.)

# NOTE: checkproc returns LSB compliant status values.
checkproc ${UT_BIN}
# NOTE: rc_status knows that we called this init script with
# "status" option and adapts its messages accordingly.
rc_status -v
;;
*)
## If no parameters are given, print which are available.
echo "Usage: $0 {start|stop|status|restart|reload}"
exit 1
;;
esac

#
rc_exit

/etc/init.d/utserver start


server started - using locale C

Prescribes the locale C, if injected with a Russian name, torrent file saves as ???????. torrent, proper and old injection in this case can not hash!

If run from the console:

/sbin/startproc -p /var/run/utserver/utserver.pid -u 1001 -g 100 /opt/utserver/bin/utserver -configfile /etc/opt/utserver/utserver.conf -settingspath /var/opt/utserver/settings -logfile /var/opt/utserver/log/utserver.log

server started - using locale ru_RU.UTF-8

That's all ok! Defines the locale ru_RU.UTF-8, Downloads hashes, torrent stores as needed.

Trying to register:

LANG=ru_RU.UTF-8
LC_CTYPE="ru_RU.UTF-8"
LC_NUMERIC="ru_RU.UTF-8"
LC_TIME="ru_RU.UTF-8"
LC_COLLATE="ru_RU.UTF-8"
LC_MONETARY="ru_RU.UTF-8"
LC_MESSAGES="ru_RU.UTF-8"
LC_PAPER="ru_RU.UTF-8"
LC_NAME="ru_RU.UTF-8"
LC_ADDRESS="ru_RU.UTF-8"
LC_TELEPHONE="ru_RU.UTF-8"
LC_MEASUREMENT="ru_RU.UTF-8"
LC_IDENTIFICATION="ru_RU.UTF-8"
LC_ALL=

Did not produce results!

openSUSE-11.3 x86_64

utorrent-server-3.0-24118

I would be grateful for any help!

###################################################

Доброго времени!

Проблема состоит только при запуске скриптом:

#! /bin/sh
#
# Copyright (c) 2005 John Doe
# All rights reserved.
#
# Author: John Doe, 2005
#
# /etc/init.d/utserver
# and its symbolic link
# /usr/sbin/rcutserver
#
### BEGIN INIT INFO
# Provides: utserver
# Required-Start: $network
# Required-Stop:
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Short-Description: utserver daemon, providing a bittorrent service
# Description: The utserver daemon is network bittorrent
# service. We want it to be active in runlevels 3
# and 5, as these are the runlevels with the network
# available.
### END INIT INFO
#
# Check for missing binaries
UT_BIN=/opt/utserver/bin/utserver
test -x $UT_BIN || { echo "$UT_BIN not installed";
if [ "$1" = "stop" ]; then exit 0;
else exit 5; fi; }

# Check for existence of needed config file and read it
UT_CONFIG=/etc/opt/utserver/utserver.conf
test -r $UT_CONFIG || { echo "$UT_CONFIG not existing";
if [ "$1" = "stop" ]; then exit 0;
else exit 6; fi; }

UT_PID=/var/run/utserver/utserver.pid
UT_SETTINGS=/var/opt/utserver/settings
UT_LOG=/var/opt/utserver/log/utserver.log

# Read config
#. $UT_CONFIG

#
# Load the rc.status script for this service.
. /etc/rc.status

# Reset status of this service
rc_reset

#

case "$1" in
start)
echo -n "Starting utserver "
## Start daemon with startproc(8). If this fails
## the return value is set appropriately by startproc.
#startproc -u 1001 -g 100 $UT_BIN
# su - -c /home/cool/bin/utserver.sh cool
startproc -p ${UT_PID} -u 1001 -g 100 ${UT_BIN} -configfile ${UT_CONFIG} -settingspath ${UT_SETTINGS} -logfile ${UT_LOG}

# Remember status and be verbose
rc_status -v
;;
stop)
echo -n "Shutting down utserver "
## Stop daemon with killproc(8) and if this fails
## killproc sets the return value according to LSB.

killproc -TERM ${UT_BIN}

# Remember status and be verbose
rc_status -v
;;
restart)
## Stop the service and regardless of whether it was
## running or not, start it again.
$0 stop
$0 start

# Remember status and be quiet
rc_status
;;
reload)
# If it supports signaling:
echo -n "Reload service utserver "
killproc -HUP ${UT_BIN}
#touch /var/run/UT.pid
rc_status -v

## Otherwise if it does not support reload:
#rc_failed 3
#rc_status -v
;;
status)
echo -n "Checking for service utserver "
## Check status with checkproc(8), if process is running
## checkproc will return with exit status 0.

# Return value is slightly different for the status command:
# 0 - service up and running
# 1 - service dead, but /var/run/ pid file exists
# 2 - service dead, but /var/lock/ lock file exists
# 3 - service not running (unused)
# 4 - service status unknown :-(
# 5--199 reserved (5--99 LSB, 100--149 distro, 150--199 appl.)

# NOTE: checkproc returns LSB compliant status values.
checkproc ${UT_BIN}
# NOTE: rc_status knows that we called this init script with
# "status" option and adapts its messages accordingly.
rc_status -v
;;
*)
## If no parameters are given, print which are available.
echo "Usage: $0 {start|stop|status|restart|reload}"
exit 1
;;
esac

#
rc_exit

/etc/init.d/utserver start

server started - using locale C

Прописывает locale C,если закачка с русским названием,torrent файл сохраняется как ???????.torrent ,собственно и старые закачки в таком случае не удаётся перехешировать!

Если запускаю из консоли:

/sbin/startproc -p /var/run/utserver/utserver.pid -u 1001 -g 100 /opt/utserver/bin/utserver -configfile /etc/opt/utserver/utserver.conf -settingspath /var/opt/utserver/settings -logfile /var/opt/utserver/log/utserver.log

server started - using locale ru_RU.UTF-8

То всё ок! Определенно locale ru_RU.UTF-8,Закачки хеширует,torrent сохраняется как надо.

Попытался прописать:

LANG=ru_RU.UTF-8
LC_CTYPE="ru_RU.UTF-8"
LC_NUMERIC="ru_RU.UTF-8"
LC_TIME="ru_RU.UTF-8"
LC_COLLATE="ru_RU.UTF-8"
LC_MONETARY="ru_RU.UTF-8"
LC_MESSAGES="ru_RU.UTF-8"
LC_PAPER="ru_RU.UTF-8"
LC_NAME="ru_RU.UTF-8"
LC_ADDRESS="ru_RU.UTF-8"
LC_TELEPHONE="ru_RU.UTF-8"
LC_MEASUREMENT="ru_RU.UTF-8"
LC_IDENTIFICATION="ru_RU.UTF-8"
LC_ALL=

Ни к чему не привела,по прежнему скрипт запускается с locale C

openSUSE-11.3 x86_64

utorrent-server-3.0-24118

В общем буду признателен за любую помощь!

#################################################

RESOLVED:

test -f /etc/sysconfig/language && \
. /etc/sysconfig/language
export LC_ALL="$RC_LC_ALL"
export LC_CTYPE="$RC_LC_CTYPE"
export LANG="$RC_LANG"
startproc -u utorrent -g users -p ${UT_PID} ${UT_BIN} -daemon -configfile ${UT_CONFIG} -settingspath ${UT_SETTINGS} -logfile ${UT_LOG} -pidfile ${UT_PID}
unset LC_ALL LC_CTYPE LANG

Решено:

test -f /etc/sysconfig/language && \
. /etc/sysconfig/language
export LC_ALL="$RC_LC_ALL"
export LC_CTYPE="$RC_LC_CTYPE"
export LANG="$RC_LANG"
startproc -u utorrent -g users -p ${UT_PID} ${UT_BIN} -daemon -configfile ${UT_CONFIG} -settingspath ${UT_SETTINGS} -logfile ${UT_LOG} -pidfile ${UT_PID}
unset LC_ALL LC_CTYPE LANG

Link to comment
Share on other sites

(translate.google)

Excuse me, hastened the withdrawal!

After stopping the torrent will not start.

check the hash goes, but does not start, writes an error

 Error!?? 

The matter probably is that torrent file takes the name of the injection, that is the Russian name.

example:

VA-Avtoshanson.torrent

preserves

Автошансон.torrent

###############################################

Извиняюсь,поспешил с выводом!

После остановки torrent не стартовал.

проверка хеша идёт,но не стартует,пишет ошибку

Ошибка! ??

Дело наверно в том что torrent файл принимает название закачки,то есть русское название.

пример:

VA-Avtoshanson.torrent

сохраняет

Автошансон.torrent

Link to comment
Share on other sites

  • 3 years later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...