I also did encounter the same problem in piCoreplayer 8.2.0. I solved
this with a sollution I found on  
http://forum.tinycorelinux.net/index.php/topic,24654.msg167051.html#msg167051
. 

In your home directory, create a file called getlocale.sh 
Code:
--------------------
    vi getlocale.sh
--------------------
 copy following text in it 
Code:
--------------------
    #!/bin/sh
  
  . /etc/init.d/tc-functionsgetlocae.sh
  
  checkroot
  
  SFILE=/usr/local/share/getlocale/SUPPORTED
  # Override terminal, incase ncurses-terminfo is not loaded
  export TERM=xterm
  export tempfile=`mktemp`
  temp2=`mktemp`
  
  echo "#!/bin/sh" > $temp2
  echo "dialog --backtitle \"TinyCore\" \\" >> $temp2
  echo "   --title \"LOCALE\" \"\$@\" \\" >> $temp2
  echo "--separate-output --checklist \"Choose which locales to support:\" 0 42 
20 \\" >> $temp2
  for i in `cat $SFILE`; do
  echo "$i \" \" off \\" >> $temp2
  done
  
  echo "2> $tempfile" >> $temp2
  chmod 755 $temp2
  
  $temp2
  
  [ "$?" -ne 0 ] && exit 1
  
  rm $temp2
  clear
  echo -e "${BLUE}Press enter to start processing."
  read gagme
  
  # Data available. Process.
  
  clear
  
  echo -ne "${BLUE}Now processing... ${CYAN}"
  
  mkdir -p /usr/lib/locale
  
  ( for i in `cat $tempfile`; do
  dest=${i%%/*}
  charset=${i##*/}
  locale=${dest%%.*}
  
  nice -n19 localedef -i $locale -c -f $charset $dest
  done
  echo "$dest" > /tmp/examplelocale
  ) &
  
  rotdash $!
  
  rm $tempfile
  
  echo -ne "\n${BLUE}Locales installed. Creating extension... ${CYAN}"
  
  ( tempdir=`mktemp -d`
  cd $tempdir
  mkdir -p usr/lib/locale
  cp -a /usr/lib/locale/locale-archive usr/lib/locale
  cd ..
  chmod 755 $tempdir
  
  rm -f mylocale.tcz
  mksquashfs $tempdir mylocale.tcz > /dev/null 2>&1
  
  rm -rf $tempdir
  ) &
  
  rotdash $!
  TCEDIR=`cat /opt/.tce_dir 2>/dev/null`
  readlink /etc/sysconfig/tcedir >/dev/null && TCEDIR=`readlink 
/etc/sysconfig/tcedir`
  OPTIONAL=${TCEDIR}/optional
  
  cp /tmp/mylocale.tcz $OPTIONAL
  grep -q "^mylocale.tcz" ${TCEDIR}/onboot.lst 2>/dev/null || echo 
"mylocale.tcz" >> ${TCEDIR}/onboot.lst
  echo "glibc_gconv.tcz" > ${OPTIONAL}/mylocale.tcz.dep
  md5sum ${OPTIONAL}/mylocale.tcz > ${OPTIONAL}/mylocale.tcz.md5.txt
  
  echo -e "\n\n${GREEN}Done. The extension is at ${OPTIONAL}/mylocale.tcz and 
in onboot.lst"
  echo "Reboot with lang=xyz (for example lang=`cat /tmp/examplelocale`) to 
start using this."
  echo -e "\n\nPress enter to quit.${NORMAL}"
  read gagme
  
  rm -f /tmp/examplelocale
  
--------------------


make it executable 
Code:
--------------------
    sudo chmod 755 getlocale.sh 
--------------------
 and run as root 
Code:
--------------------
    sudo ./getlocale.sh 
--------------------


All credits are for Paul_123 and his team.

Herewith I like to thank the whole PCp team for the excelent work done!
And yes I made a donation too.




SlowMo wrote: 
> Hello Matti, Hello Paul,
> 
> I am new to squeezebox, just started a few weeks ago with running
> piCorePlayer on a RasPi 2B, and I am having the same or similar issue:
> German "Umlaute" symbols causing songs and albums not to show up in the
> library.
> Actually, it is slightly more confusing, because the albums only
> disappear in the additional libraries that I have added using the
> "Simple Library Views" plugin. They show up correctly in the regular
> "album" library. 
> 
> So, in trying to solve this issue, I attempted to install the German
> UTF-8 locale using the extension and getlocale.sh. But when I run the
> script with "sudo getlocale.sh" I get noothing but a black screen and
> the prompt shows up at the bottom of the terminal window again. Adding
> the line "export TERM=xterm" as suggested did not help. I am connecting
> via SSH using PuTTY and getlocale.tcz is in the onboot.lst.
> 
> Any ideas from the experts what is happening here and how I could get
> things working?
> 
> Sorry, I am not overly familiar with linux, so bear with me if I made a
> silly mistake somewhere.
> 
> Cheers
> SlowMo


------------------------------------------------------------------------
mcblack's Profile: http://forums.slimdevices.com/member.php?userid=73199
View this thread: http://forums.slimdevices.com/showthread.php?t=110250

_______________________________________________
diy mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/diy

Reply via email to