#1422 Non-ASCII Quotation marks: cursor in between UTF8-Bytes

2.02_Stable
open
nobody
None
6
2014-04-19
2013-12-06
Anonymous
No

Steps to reproduce

  1. In the menu bar, go to Tools->Options
  2. Make sure the "General" item on the left-hand side is selected
  3. In the "Automatic replacement" box, select "Custom" from the "Predefined sets: " dropdown.
  4. (!) Enter any non-ASCII characters (i.e. characters that have more than one byte in UTF-8) in the "Opening quotation mark:" and the "Closing quotation mark:" textfield.
  5. Close the options window
  6. Open a (new) file
  7. Type a quotation mark in the editor. It is (correctly) replaced with the character you entered.
  8. Type any character.

Expected result

The character appears after the quotation mark

Real (buggy) result

The qoutation mark disappears. Instead white Hex-Numbers in black blocks appear and the new character is placed inside. For example, if I use a german opening quotation mark („) and type the letter (uppercase) D, i get [xE2]D[x80][x9E]. Note that the hex numbers together form the UTF-8 encoded „.

Workaround

The problem can be worked around by clicking with the mouse after the (replaced) character or by pressing the left-arrow key. That leads me to the following suspection:

Probable cause

I suspect that if you enter n characters in the quotation mark textbox, when replacing such a quotation mark, the cusor position is incremented by n bytes instead of characters.

Discussion


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks