Revision: 577
Author: eht16
Date: 2006-07-17 12:48:42 -0700 (Mon, 17 Jul 2006)
ViewCVS: http://svn.sourceforge.net/geany/?rev=577&view=rev
Log Message:
-----------
Fixed endless loop.
Modified Paths:
--------------
trunk/src/utils.c
Modified: trunk/src/utils.c
===================================================================
--- trunk/src/utils.c 2006-07-17 19:24:35 UTC (rev 576)
+++ trunk/src/utils.c 2006-07-17 19:48:42 UTC (rev 577)
@@ -865,13 +865,14 @@
gboolean check_current = FALSE;
guint i;
- if (g_get_charset((const gchar**)&locale_charset) == FALSE)
- check_current = TRUE; // current locale is not UTF-8, we have to check this charset
+ // current locale is not UTF-8, we have to check this charset
+ check_current = ! g_get_charset((const gchar**)&locale_charset);
for (i = 0; i < GEANY_ENCODINGS_MAX; i++)
{
if (check_current)
{
+ check_current = FALSE;
charset = locale_charset;
i = -1;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 576
Author: eht16
Date: 2006-07-17 12:24:35 -0700 (Mon, 17 Jul 2006)
ViewCVS: http://svn.sourceforge.net/geany/?rev=576&view=rev
Log Message:
-----------
Use real length of data instead of -1.
Modified Paths:
--------------
trunk/src/document.c
Modified: trunk/src/document.c
===================================================================
--- trunk/src/document.c 2006-07-17 14:17:37 UTC (rev 575)
+++ trunk/src/document.c 2006-07-17 19:24:35 UTC (rev 576)
@@ -611,7 +611,7 @@
gchar* conv_file_contents = NULL;
// try to convert it from UTF-8 to original encoding
- conv_file_contents = g_convert(data, -1, doc_list[idx].encoding, "UTF-8",
+ conv_file_contents = g_convert(data, len-1, doc_list[idx].encoding, "UTF-8",
NULL, NULL, &conv_error);
if (conv_error != NULL)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 575
Author: ntrel
Date: 2006-07-17 07:17:37 -0700 (Mon, 17 Jul 2006)
ViewCVS: http://svn.sourceforge.net/geany/?rev=575&view=rev
Log Message:
-----------
Moved external appendix elements to geany.docbook to validate ok
Modified Paths:
--------------
trunk/ChangeLog
trunk/doc/geany.docbook
trunk/doc/geany_gpl.docbook
trunk/doc/scikeybinding.docbook
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2006-07-17 12:33:10 UTC (rev 574)
+++ trunk/ChangeLog 2006-07-17 14:17:37 UTC (rev 575)
@@ -1,3 +1,9 @@
+2006-07-17 Nick Treleaven <nick.treleaven(a)btinternet.com>
+
+ * doc/scikeybinding.docbook, doc/geany.docbook, doc/geany_gpl.docbook:
+ Moved external appendix elements to geany.docbook to validate ok.
+
+
2006-07-17 Enrico Tröger <enrico.troeger(a)uvena.de>
* src/utils.c, src/document.c, src/callbacks.c:
Modified: trunk/doc/geany.docbook
===================================================================
--- trunk/doc/geany.docbook 2006-07-17 12:33:10 UTC (rev 574)
+++ trunk/doc/geany.docbook 2006-07-17 14:17:37 UTC (rev 575)
@@ -1557,10 +1557,14 @@
</chapter>
<!-- Sci default keys appendix -->
+ <appendix id="scikeybinding">
&scikeybinding;
+ </appendix>
<!-- GPL appendix -->
+ <appendix id="geany-gpl">
&legal;
+ </appendix>
<appendix id="scintilla-license">
<title>License for Scintilla and SciTE</title>
Modified: trunk/doc/geany_gpl.docbook
===================================================================
--- trunk/doc/geany_gpl.docbook 2006-07-17 12:33:10 UTC (rev 574)
+++ trunk/doc/geany_gpl.docbook 2006-07-17 14:17:37 UTC (rev 575)
@@ -1,4 +1,3 @@
-<appendix id="geany-gpl">
<appendixinfo>
<title>GNU General Public License</title>
<pubdate>Version 2, June 1991</pubdate>
@@ -416,4 +415,3 @@
Public License instead of this License.
</para>
</sect1>
- </appendix>
Modified: trunk/doc/scikeybinding.docbook
===================================================================
--- trunk/doc/scikeybinding.docbook 2006-07-17 12:33:10 UTC (rev 574)
+++ trunk/doc/scikeybinding.docbook 2006-07-17 14:17:37 UTC (rev 575)
@@ -1,4 +1,3 @@
-<appendix id="scikeybinding">
<appendixinfo>
<title>Scintilla keyboard commands</title>
<pubdate>20 June 2006</pubdate>
@@ -12,9 +11,9 @@
Scintilla and SciTE.
A copy of this license can be found in the file scintilla/License.txt
included with the source code of this
- program and in the "License for Scintilla and SciTE"
+ program and in the
appendix of this document.
- <!-- See <xref linkend="scintilla-license"/>. (outside this doc!) -->
+ See <xref linkend="scintilla-license"/>.
</para>
</legalnotice>
</appendixinfo>
@@ -184,4 +183,3 @@
</table>
</para>
</sect1>
-</appendix>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 574
Author: eht16
Date: 2006-07-17 05:33:10 -0700 (Mon, 17 Jul 2006)
ViewCVS: http://svn.sourceforge.net/geany/?rev=574&view=rev
Log Message:
-----------
Added UTF-8 as default encoding.
Replaced xmlto command by xsltproc.
Added reference for the GPL appendix.
Modified Paths:
--------------
trunk/ChangeLog
trunk/doc/Makefile.am
trunk/doc/geany.docbook
trunk/doc/geany.xsl
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2006-07-17 11:23:13 UTC (rev 573)
+++ trunk/ChangeLog 2006-07-17 12:33:10 UTC (rev 574)
@@ -3,6 +3,9 @@
* src/utils.c, src/document.c, src/callbacks.c:
Moved document related functions from utils.c to document.c.
Keep cursor position when replacing tabs by spaces.
+ * doc/geany.xsl: Added UTF-8 as default encoding.
+ * doc/Makefile.am: Replaced xmlto command by xsltproc.
+ * doc/geany.docbook: Added reference for the GPL appendix.
2006-07-16 Enrico Tröger <enrico.troeger(a)uvena.de>
Modified: trunk/doc/Makefile.am
===================================================================
--- trunk/doc/Makefile.am 2006-07-17 11:23:13 UTC (rev 573)
+++ trunk/doc/Makefile.am 2006-07-17 12:33:10 UTC (rev 574)
@@ -15,12 +15,7 @@
htmldoc: geany.docbook
if [ geany.docbook -nt "./html/index.html" ]; then \
$(mkinstalldirs) html; \
- # hack for my local system to generate documentation in UTF-8 charset \
- if [ `hostname` = "ukio" ]; then \
- LC_CTYPE=de_DE.utf8@euro xmlto -x geany.xsl -o html/ xhtml geany.docbook; \
- else \
- xmlto -x geany.xsl -o html/ xhtml geany.docbook; \
- fi; \
+ xsltproc --nonet --xinclude -o html/ geany.xsl geany.docbook; \
test -f html/geany.css || cp geany.css html/; \
fi
Modified: trunk/doc/geany.docbook
===================================================================
--- trunk/doc/geany.docbook 2006-07-17 11:23:13 UTC (rev 573)
+++ trunk/doc/geany.docbook 2006-07-17 12:33:10 UTC (rev 574)
@@ -7,7 +7,7 @@
<!ENTITY appurl "http://geany.uvena.de">
<!ENTITY deburl "http://debian.uvena.de">
<!ENTITY author_mail "enrico.troeger(a)uvena.de">
-<!ENTITY date "July 01, 2006">
+<!ENTITY date "July 17, 2006">
<!ENTITY legal SYSTEM "geany_gpl.docbook">
<!ENTITY scikeybinding SYSTEM "scikeybinding.docbook">
]>
@@ -16,7 +16,7 @@
<bookinfo>
<author>
<firstname>Enrico</firstname>
- <surname>Troeger</surname>
+ <surname>Tröger</surname>
<address><email>&author_mail;</email></address>
</author>
<author>
@@ -37,7 +37,7 @@
This document is distributed under the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2 of the License, or (at your option) any later version.
A copy of this license can be found in the file COPYING included with the source code of this
- program and in the appendix of this document.
+ program and see <xref linkend="geany-gpl"/>.
</para>
</legalnotice>
<title>
@@ -91,7 +91,7 @@
<application>&app;</application> is distributed under the terms of the GNU General Public License as published
by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
A copy of this license can be found in the file COPYING included with the source code of this
- program and in the appendix A of this document.
+ program or see <xref linkend="geany-gpl"/>.
</para>
<para>
The included Scintilla library (found in the subdirectory scintilla/) has its own
@@ -846,10 +846,9 @@
<para>
<application>&app;</application> supports the default keyboard shortcuts for the
Scintilla editing widget. For a list of these commands, see
- <!-- <xref linkend="scikeybinding"/> (outside this doc!) -->
- the "Scintilla keyboard commands" appendix.
- The Scintilla keyboard shortcuts will be
- overridden by any custom keybindings with the same keyboard shortcut.
+ <xref linkend="scikeybinding"/>.
+ The Scintilla keyboard shortcuts will be overridden by any custom keybindings
+ with the same keyboard shortcut.
</para>
<para>
For all actions listed below you can define your own keybindings. Open the Preferences
@@ -1488,7 +1487,7 @@
<row>
<entry>initial</entry>
<entry>The developer's initials, e.g. "ET" for
- Enrico Troeger or "JFD" for John Foobar Doe.</entry>
+ Enrico Tröger or "JFD" for John Foobar Doe.</entry>
<entry>filetypes, file header, function description, ChangeLog entry</entry>
</row>
<row>
Modified: trunk/doc/geany.xsl
===================================================================
--- trunk/doc/geany.xsl 2006-07-17 11:23:13 UTC (rev 573)
+++ trunk/doc/geany.xsl 2006-07-17 12:33:10 UTC (rev 574)
@@ -8,6 +8,7 @@
<!-- Use stylesheet -->
<xsl:param name="html.stylesheet" select="'geany.css'"/>
+<xsl:param name="chunker.output.encoding" select="'UTF-8'"/>
</xsl:stylesheet>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.