Re: LOCALE issue: Pysycache errors on run

2011-12-22 Thread Da Rock

On 12/22/11 15:11, Da Rock wrote:

Just something for the kids, but I'm wondering how to get this to work?

I've installed from ports, but when I run it from the cli to test it I 
get an error:


Traceback (most recent call last):
  File /usr/local/bin/pysycache.py, line 442, in module
if __name__ == '__main__': main(const.GWithFullScreen)
  File /usr/local/bin/pysycache.py, line 266, in main
myrep = os.path.join(const.GRepPysycache, 
'/usr/local/share/pysycache/help', const.GMyLocale )

  File /usr/local/lib/python2.7/posixpath.py, line 66, in join
if b.startswith('/'):
AttributeError: 'NoneType' object has no attribute 'startswith'

Assuming this _does_ actually work, anyone know the trick to getting 
this work?
After some extensive rooting around, I've discovered through a crash 
course in python and destructive testing that there is a locale issue 
with this program:


%env LANG=en_EN.ISO8859-1 pysycache.py
Traceback (most recent call last):
  File /usr/local/bin/pysycache.py, line 442, in module
if __name__ == '__main__': main(const.GWithFullScreen)
  File /usr/local/bin/pysycache.py, line 264, in main
locale.setlocale(locale.LC_ALL,)
  File /usr/local/lib/python2.7/locale.py, line 531, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting

Many variations have been tried here, but I still can't get it to work. 
Anything I'm missing here?


Disabling the locale setting in the program is not an option for many 
reasons.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: LOCALE issue: Pysycache errors on run

2011-12-22 Thread Polytropon
On Thu, 22 Dec 2011 23:13:53 +1000, Da Rock wrote:
 %env LANG=en_EN.ISO8859-1 pysycache.py
   ^^
Isn't that supposed to be en_US or en_GB?
I'm not sure if there's also en_AU... :-)

-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: LOCALE issue: Pysycache errors on run

2011-12-22 Thread Da Rock

On 12/22/11 23:20, Polytropon wrote:

On Thu, 22 Dec 2011 23:13:53 +1000, Da Rock wrote:

%env LANG=en_EN.ISO8859-1 pysycache.py

^^
Isn't that supposed to be en_US or en_GB?
I'm not sure if there's also en_AU... :-)

The one variation I didn't try I had tried en_US and en_AU, but not 
with the encoding.


Mind you this was not the first thing I had considered when this problem 
cropped up since everything else just works :)


BTW there is en_AU.

Thanks yet again Polytropon ;)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: LOCALE issue: Pysycache errors on run

2011-12-22 Thread Polytropon
On Thu, 22 Dec 2011 23:57:28 +1000, Da Rock wrote:
 On 12/22/11 23:20, Polytropon wrote:
  On Thu, 22 Dec 2011 23:13:53 +1000, Da Rock wrote:
  %env LANG=en_EN.ISO8859-1 pysycache.py
  ^^
  Isn't that supposed to be en_US or en_GB?
  I'm not sure if there's also en_AU... :-)
 
 The one variation I didn't try I had tried en_US and en_AU, but not 
 with the encoding.

I see - if I remember correctly, $LANG is just
the language combination, while $LC_* do have
the encoding appended, e. g. ISO8859-1, -15 or
UTF-8.

There's also a precedence rule regarding $LANG
and the $LC_* settings, and $LC_ALL in relation
to the others of $LC_*.



 BTW there is en_AU.

Cool, didn't know that (just assumed).


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Pysycache errors on run

2011-12-21 Thread Da Rock

Just something for the kids, but I'm wondering how to get this to work?

I've installed from ports, but when I run it from the cli to test it I 
get an error:


Traceback (most recent call last):
  File /usr/local/bin/pysycache.py, line 442, in module
if __name__ == '__main__': main(const.GWithFullScreen)
  File /usr/local/bin/pysycache.py, line 266, in main
myrep = os.path.join(const.GRepPysycache, 
'/usr/local/share/pysycache/help', const.GMyLocale )

  File /usr/local/lib/python2.7/posixpath.py, line 66, in join
if b.startswith('/'):
AttributeError: 'NoneType' object has no attribute 'startswith'

Assuming this _does_ actually work, anyone know the trick to getting 
this work?


Cheers
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org