bugPSPP - Bugs: bug #58732, string variable with umlaut has...

 
 

bug #58732: string variable with umlaut has reduced width

Submitter:  Friedrich Beckmann <beckmanf>
Submitted:  Wed 08 Jul 2020 01:27:22 PM UTC
   
 
Category:  Graphical User Interface Severity:  5 - Average
Status:  Invalid Assigned to:  None
Open/Closed:  Closed Release:  None
Effort:  0.00
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 11 Jul 2020 06:02:40 AM UTC, comment #2: 

Thanks - so it is a last century feature... Closing.

Friedrich Beckmann <beckmanf>
Group Member
Sat 11 Jul 2020 05:08:38 AM UTC, comment #1: 

When I have considered this issue in the past, I've always concluded that there can be no solution, if we're to keep spss compatibility.

The problem is, that the "width" of a string variable is defined as the number of bytes (not characters) that the variable contains.

The symptoms are even worse, if a multibyte character happens to overlap the end of the string - it gets curtailed and transformed into something else :(

John Darrington <jmd>
Group administrator
Wed 08 Jul 2020 01:27:22 PM UTC, original submission:  

To reproduce the problem

  1. Open psppire
  2. Create a variable "a"
  3. Change the format to string and keep the default width at 8
  4. Switch to data view
  5. Click Row 1 Column 1 and type "Grünkern"


=> Result: The sheet shows "Grünker"
=> Expected: The sheet should show "Grünkern"

Bug: Each Umlaut counts as two characters. Typing "ääääääää" yields "ääää"

Tested on debian buster on master version as of 8th of July 2020. Same behaviour for version 1.2.0.

Is this an expected last century behaviour? I would call it a bug.

Friedrich Beckmann <beckmanf>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jmd (Posted a comment)
  • -email is unavailable- added by beckmanf (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-07-11 beckmanf StatusNeed Info Invalid
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code