kile opens with utf8 even if different option set

Bug #362292 reported by Benjamin von Engelhardt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kile (Ubuntu)
Fix Released
Low
Unassigned
Jaunty
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: kile

On ubuntu jaunty, the encoding "Western European (ISO 8859-15)" in options, editor, open/save is ignored by the "Open"-dialog (in "save as" it correctly uses that encoding); instead kile always wants to open in utf8 encoding and I have to manually change that each time I open a file.

Related branches

Revision history for this message
Andreas Wenning (andreas-wenning) wrote :

This seems indeed to be the case. The configuration is preserved after restarting kile; but it is never used in the open file dialog.

Changed in kile (Ubuntu):
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Thomas Braun (tbraun1234) wrote : extragear/office/kile/src

SVN commit 956896 by tbraun:

always suggest the current katepart default encoding at the open file dialoge.
At the save dialogue we always suggest the current document encoding and not the katepart default opening saving, this is done for safety atm.

CCMAIL: <email address hidden>

 M +4 -1 kiledocmanager.cpp

--- trunk/extragear/office/kile/src/kiledocmanager.cpp #956895:956896
@@ -708,8 +708,11 @@
                   + extensions->metapostFileFilter() + '\n'
                   + "*|" + i18n("All Files");

+ // try to get the current encoding, this is kind of ugly ...
+ QString encoding = m_ki->toolManager()->config()->group("Kate Document Defaults").readEntry("Encoding","");
+
  //get the URLs
- KEncodingFileDialog::Result result = KEncodingFileDialog::getOpenUrlsAndEncoding(QString (), currentDir, filter, m_ki->mainWindow(), i18n("Open Files"));
+ KEncodingFileDialog::Result result = KEncodingFileDialog::getOpenUrlsAndEncoding(encoding, currentDir, filter, m_ki->mainWindow(), i18n("Open Files"));

  //open them
  KUrl::List urls = result.URLs;

Changed in kile (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Andreas Wenning (andreas-wenning) wrote :

Stable Release Update fixing this requested in bug 362537.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package kile - 1:2.1.0~svn958896-0ubuntu1

---------------
kile (1:2.1.0~svn958896-0ubuntu1) karmic; urgency=low

  * Merge with debian; remaining ubuntu changes:
    - debian/rules: Keep our own simple kde4.mk based file
    - debian/control: Build-depend on cdbs instead of pkg-kde-tools
    - debain/control: Don't suggest kile-i18n
    - debian/kile-doc.install: Install to /usr/share/doc/kde/HTML
    - debian/kile.install: Install kile.xpm directly from the debian dir
      as our debian/rules doesn't move it into debian/tmp
  * New svn snapshot:
    - Fixes chosen char encoding not used in open dialog. (LP: #362292)
    - Fixes crash entering double quotes in some occasions. (LP: #362537)
    - Drop all cherry-picked revision patches
  * debian/kile.docs: Remove Building-with-cmake.txt, no longer exists.

 -- Andreas Wenning <email address hidden> Tue, 28 Apr 2009 23:52:56 +0200

Changed in kile (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Andreas Wenning (andreas-wenning) wrote :

Proposed fix for jaunty uploaded. Please test and give feedback in bug 362537 . See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in kile (Ubuntu Jaunty):
status: New → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

Copied to jaunty-updates. The changelog has an invalid reference to the Launchpad bugs, thus this wasn't picked up automatically.

Changed in kile (Ubuntu Jaunty):
status: Fix Committed → Fix Released
Revision history for this message
Pauli Rikula (prikula) wrote :

Kile 2.1 Does not change writing permissions after saving using ISO 8859-1 encoding or setting the encoding to ISO 8859-1 if tex-file contains 'öåäÖÅÄ'-chars and it has been opened as UTF-8 file. When opening the file at first place kile said 'The file foobar was opened with UTF-8 encoding, but contained invalid characters. It is set to read-only mode, as saving might destroy its content.

test for example:

$ python -c "open('test.tex','w').write('\\usepackage[latin1]{inputenc}\n\xe4\xe5\xf6\n')"

$kile test.tex &

$ apt-cache show kile
Package: kile
Priority: optional
Section: universe/tex
Installed-Size: 10492
Maintainer: Ubuntu MOTU Developers <email address hidden>
Original-Maintainer: Debian KDE Extras Team <email address hidden>
Architecture: i386
Version: 1:2.1.0~svn1014763beta2-1ubuntu1
Replaces: ktexmaker2 (<< 1.8)
Depends: kdebase-runtime (>= 4:4.3.0), kdelibs5 (>= 4:4.3.0), libc6 (>= 2.4), libgcc1 (>= 1:4.1.1), libqt4-dbus (>= 4.5.1), libqt4-network (>= 4.5.1), libqt4-script (>= 4.5.1), libqt4-svg (>= 4.5.1), libqt4-xml (>= 4.5.1), libqtcore4 (>= 4.5.1), libqtgui4 (>= 4.5.1), libstdc++6 (>= 4.1.1), konsole, texlive-base-bin, texlive-latex-base
Recommends: asymptote, context, dblatex, dvipdfmx, dvipng, ghostscript, imagemagick, kbibtex | pybliographer | gbib | jabref, konqueror | iceweasel, latex2html, lilypond, okular | evince | gv, psutils, tex4ht, texlive-metapost, texlive-xetex, zip
Suggests: kile-doc, texlive-doc-base, aspell | ispell | hspell
Conflicts: ktexmaker2 (<< 1.8)
Filename: pool/universe/k/kile/kile_2.1.0~svn1014763beta2-1ubuntu1_i386.deb
Size: 1851272
MD5sum: d77b2dc08c0f6826f70c498f7ebc51e2
SHA1: 85431d1cb29774a0482062c54ac3290efce1590c
SHA256: 1238bbe6f7ccd489105f36400923849599280f4a25a338fc3b5348fb2fe37734
Description: KDE Integrated LaTeX Environment
 Kile is a user-friendly LaTeX source editor and TeX shell for KDE.
 .
 The source editor is a multi-document editor designed for .tex and .bib
 files. Menus, wizards and auto-completion are provided to assist with
 tag insertion and code generation. A structural view of the document
 assists with navigation within source files.
 .
 The TeX shell integrates the various tools required for TeX processing.
 It assists with LaTeX compilation, DVI and postscript document viewing,
 generation of bibliographies and indices and other common tasks.
 .
 Kile can support large projects consisting of several smaller files.
Homepage: http://kile.sourceforge.net
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu

Revision history for this message
Pauli Rikula (prikula) wrote :

Hmm. This might be a different bug after all. I'll create a new one.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.