Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: getnikola/nikola
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 421694d3dbd3
Choose a base ref
...
head repository: getnikola/nikola
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 6ac8b5091db9
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Jun 16, 2016

  1. fix for charset issue

    ralsina committed Jun 16, 2016
    Copy the full SHA
    1adbf5b View commit details
  2. Copy the full SHA
    6ac8b50 View commit details
Showing with 5 additions and 7 deletions.
  1. BIN snapcraft/nikola.png
  2. +5 −7 snapcraft/nikola.sh
Binary file added snapcraft/nikola.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 5 additions & 7 deletions snapcraft/nikola.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
#!/bin/sh

export HOME=$SNAP_APP_USER_DATA
export HACKDIR=$SNAP_APP_USER_DATA
export NETHACKOPTIONS=$SNAP_APP_USER_DATA/.nethackrc
export HOME=$SNAP_USER_DATA

export I18NPATH=$SNAP_APP_PATH/usr/share/i18n
export LOCPATH=$SNAP_APP_USER_DATA
export I18NPATH=$SNAP/usr/share/i18n
export LOCPATH=$SNAP_USER_DATA

APPLANG=en_US
APPENC=UTF-8
APPLOC="$APPLANG.$APPENC"

# generate a locale so we get properly working charsets and graphics
if [ ! -e $SNAP_APP_USER_DATA/$APPLOC ]; then
localedef --prefix=$SNAP_APP_USER_DATA -f $APPENC -i $APPLANG $SNAP_APP_USER_DATA/$APPLOC
if [ ! -e $SNAP_USER_DATA/$APPLOC ]; then
localedef --prefix=$SNAP_USER_DATA -f $APPENC -i $APPLANG $SNAP_USER_DATA/$APPLOC
fi

export LC_ALL=$APPLOC