Magnus Larsson
2006-Feb-18 15:47 UTC
[Weft QDA users] Problems installing and with character coding
Hi! I have two different problems with weft: On one machine, running unbunt linux (breezy badger), i have weft up and running. But when trying to create a new project I run into problems. I import text files into the project, and that''s fine. But when viewing the files, problems occur. Either there is not text displayed at all - a frame appears but it is empty. This seems to be the case when the file is stored with character coding iso-8859-1. Or, when the file is stored as utf8, it shows, but the swedish characters are displayed incorrectly, as strange characters. My system locale is utf8. My second problem is installation of weft on a debian unstable machine. I have downloaded the weft-qda-1.0.0 source, but when trying to install sqlite-ruby-2.2.3, i get the following: vista4:/home/magnus/weft/sqlite-ruby-2.2.3# ruby install.rb cp ext/extconf.rb ext/sqlite-api.c build cp -r lib build cd build extconf.rb:1:in `require'': no such file to load -- mkmf (LoadError) from extconf.rb:1 could not configure sqlite module I have the following installed: vista4:~# dpkg -l | grep sqlite ii libdbd-sqlite-ruby 0.0.23-3 Ruby/DBI driver for SQLite ii libdbd-sqlite-ruby1.8 0.0.23-3 Ruby/DBI SQLite driver for Ruby 1.8 ii libsqlite0 2.8.16-1 SQLite shared library ii libsqlite3-0 3.2.8-1 SQLite 3 shared library ii libsqlite3-ruby 1.1.0-1 SQLite3 interface for Ruby ii libsqlite3-ruby1.8 1.1.0-1 SQLite3 interface for Ruby 1.8 ii sqlite 2.8.16-1 command line interface for SQLite Any ideas on what to check or do? Regards, Magnus Larsson
Alex Fenton
2006-Feb-19 13:48 UTC
[Weft QDA users] Problems installing and with character coding
Hi Magnus Thanks for the info on Linux. Your second problem is more straightforward...> My second problem is installation of weft on a debian unstable > machine. I have downloaded the weft-qda-1.0.0 source, but when trying > to install sqlite-ruby-2.2.3, i get the following: > > vista4:/home/magnus/weft/sqlite-ruby-2.2.3# ruby install.rb > ... > extconf.rb:1:in `require'': no such file to load -- mkmf (LoadError) > from extconf.rb:1 > could not configure sqlite modulemkmf is part of Ruby''s standard library, used to help build c-extension modules. Though it would come with any source build of Ruby, it looks like Debian splits it into a separate package, called ruby1.8-dev . if you install this package using apt, sqlite install should be fine. A bit more info in the URL below: http://rubyforge.org/forum/forum.php?thread_id=4161&forum_id=4050> On one machine, running unbunt linux (breezy badger), i have weft up > and running. But when trying to create a new project I run into > problems. I import text files into the project, and that''s fine. But > when viewing the files, problems occur. Either there is not text > displayed at all - a frame appears but it is empty. This seems to be > the case when the file is stored with character coding iso-8859-1. > > Or, when the file is stored as utf8, it shows, but the swedish > characters are displayed incorrectly, as strange characters. > > My system locale is utf8. >I tested some French text today on Ubuntu warty (an older version), and all worked fine - accented characters are acceptable in document text, category names, memos etc. but -- my system locale is en_GB.iso88591 Ubuntu, it seems, with the breezy release, was the first major linux distro to move to UTF-8 as the system locale. In the big picture (standards compliance, multilingual support) this is a good thing, but it''s a pain for Weft. Weft uses wxruby-0.6.0, which doesn''t support UTF-8. Accented characters in documents only work where the system locale matches the document file encoding, and isn''t UTF. It might be possible to run Weft on breezy by creating an environment where the locale is set to something more congenial. You could change your system''s default locale - a quick google suggests something like ''dpkg-reconfigure locales'' - but you might not want to do this. You could also try adjusting just the environment that Weft is running in. I can''t really test this without breezy installed, but as a first step, you might try altering environment variables in your shell before running Weft, eg: export LC_CTYPE=en_GB.iso88591 (and possibly other variables - you will want a swedish language flag, not en_GB) Also some documents seem to suggest you can choose a session locale when logging into Ubuntu. Try an iso-latin one instead of UTF-8 and see if this helps. In the longer run this will be solved in Weft version 2.0, which will use wxruby2, which supports UTF-8 - so all projects will be multilingual-enabled. But wxruby2 is some time away from being ready, and Weft 2.0 is really just an apple in my eye at the moment ... Hope some of this is helpful, do let us know how you get on. alex