Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pike pike
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 104
    • Issues 104
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • pikelang
  • pikepike
  • Issues
  • #1679
Closed
Open
Issue created May 22, 2001 by Peter Bortas@zinoOwner

String.Buffer problem with mixed-width strings

Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1679

Reported by Jonas Wallden jonasw@roxen.com

lister:jonasw $ ./pike-sås/7.2/bin/pike
Pike v7.2 release 37 running Hilfe v2.0 (Incremental Pike Frontend)
> object b = String.Buffer();
Result: Buffer(0 /* 0 */)
> b->add("a");
Result: 21
> b->add("\1234");
Result: 24
> b->add("b");
Result: 26
> b->add("\2345");
Result: 28
> b->add("c");
Result: 30
> b->get();
Result: "\1234ab\2345c"

The first addition of a wide string is incorrectly put at the beginning of the buffer. Later additions appear to work better.

Assignee
Assign to
Time tracking