[sword-devel] layout.conf and utf-8

Troy A. Griffitts sword-devel@crosswire.org
Thu, 27 Nov 2003 23:13:51 -0700

	Thanks for the detailed bug report.  It's probably a simple fix and a 
blockheaded error on my part.  I would bet I'm not even trying to do a 
utf8towide conversion on read of the .conf file but I am doing the 
conversion on save (or vice versa)  I'll try to get a fixed version for 
you quickly.


Adrian Korten wrote:
> Good day,
> We have run into a new and somewhat irregular error with Thai texts. On
> exiting the program, the following window would appear. "Sword caused an
> invalid page fault in module <unknown> at 0000:08cb8e0". Once this
> message occured, it would keep occuring with each exit of the program.
> This happened with both the v1.5.4 and v1.5.6 programs. At first, I
> thought it had something to do with the Thai text modules (zipped and
> encrypted). It was erratic and would show up after an install on some
> machines but not others. Uninstalling and re-installing the programs
> would fix the problem.
> I finally had the problem on a local machine and the time to dig into it
> more. Neither uninstalling the Thai modules, turning off all switches
> (Strongs, headings, hebrew, etc.) nor turning off 'Autosave layout' and
> 'Autosave Personal bookmarks' helped. But I began to notice it was not
> saving layout changes that had been previously made. Examining the
> layout.conf file, it had a some lines that looked like Thai characters
> as untranslated utf-8 characters. After deleting these lines, the
> problem disappears and there is no error on exit.
> Looking at this problem a bit more when the user does a search and looks
> up a previous search, the Thai searches are all unreadable. Rather the
> searches from the current session are displayed okay but searches from
> previous program sessions are unreadable. I assume the previous searches
>   are being read from the layout.conf file. The layout.conf file is a
> non-UTF-8 format and cannot handle non-roman characters properly.
> It also seems like the lookup and search texts that are saved for Thai
> are quite long. They seem to be longer than what would have been entered
> and then saved as ascii (3x characters). After doing a before program 
> use and after, these strings are being repeated with each running of the 
> program. The first shutdown messes up the utf-8 characters and 
> afterwards it string is duplicated each time.
> I'm thinking of setting the 'LookupSaveCount' and 'SearchSaveCount' to
> zero. Or does anyone have a better suggestion?
> Adrian
> ------------------------------------------------------------------------
> [CommentView]
> Personal=
> RWP=
> TSK=
> tbsStudyC=
> [History]
> LastComModule=TSK
> LastLDModule=StrongsHebrew
> LastParaMod01=
> LastParaMod02=
> LastParaMod03=
> LastTextModule=KJV
> LastVerse=Romans 8:1
> LookupSaveCount=5
> LookupText=Romans 8:1
> LookupText=Matthew 1:3
> LookupText=Ãƒà ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢Ãƒà ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚ÂÃƒà ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢Ãƒà ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¹Ã…â€œÃƒà ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒà ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â·Ãƒà ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒà ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¸Ãƒà ’Ã†â€™
ƒÆ’â€ Ã¢â‚¬â„¢Ãƒà ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€šÃ‚ÂÃƒà ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢Ãƒà ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€šÃ‚Â¡ 1:4
> LookupText=John 1:1
> LookupText=Ãƒà ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢Ãƒà ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡Ãƒà ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢Ãƒà ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚ÂÃƒà ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢Ãƒà ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€šÃ‚Â¹Ãƒà ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢Ãƒà ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¬Ãƒà â
™Ãƒâ€ â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒà ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¹ 1:1
> SearchSaveCount=5
> SearchText=Ãƒà ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢Ãƒà ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â Ãƒà ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒà ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¸Ãƒà ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒà ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¡Ãƒà ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢Ãƒà ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â Ãƒà ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â
¡Ãƒà ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¸Ãƒà ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒà ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â²Ãƒà ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢Ãƒà ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â Ãƒà ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒà ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¸Ãƒà ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒà ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â£Ãƒà â€
Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢Ãƒà ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â Ãƒà ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒà ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¸Ãƒà ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒà ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â°Ãƒà ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢Ãƒà ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â Ãƒà ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒà ’ÃÂ
â‚¬Å¡Ãƒâ€šÃ‚Â¹Ãƒà ’Ã†â€™Ãƒâ€šÃ‚Â¢Ãƒà ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬Ãƒà ’Ã¢â‚¬Â¦Ãƒâ€šÃ‚Â¡Ãƒà ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢Ãƒà ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â Ãƒà ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒà ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¸Ãƒà ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒà â€
> [LDView]
> BDB=
> Easton=
> StrongsGreek=
> StrongsHebrew=
> Thayer=
> losung_en_99=
> [ModuleOptions]
> Footnotes=Off
> Headings=On
> Hebrew Cantillation=Off
> Hebrew Vowel Points=On
> Morphological Tags=Off
> Strong's Numbers=Off
> Textual Variants=Primary Reading
> Transliteration=Off
> Words of Christ in Red=Off
> [Screen]
> MainHeight=533
> MainLeft=54
> MainTop=33
> MainWidth=796
> Maximized=false
> SearchHeight=555
> SearchLeft=487
> SearchMaximized=false
> SearchTop=160
> SearchWidth=490
> TextComHeight=271
> TextWidth=599
> [TextView]
> BHS=
> BWE=
> Byz=
> KJV=
> RSV=
> TBS02b=
> TBS71b=