Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
briar
briar
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 675
    • Issues 675
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 11
    • Merge Requests 11
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • briar
  • briarbriar
  • Issues
  • #218

Closed
Open
Opened Jan 18, 2016 by akwizgran@akwizgranOwner
  • Report abuse
  • New issue
Report abuse New issue

UTF-8 string encoding/decoding fails with POSIX locale

The unit tests BdfReaderImplTest#testReadUtf8String() and BdfWriterImplTest#testWriteUtf8String() fail on a Linux system with the following locale settings:

LANG=
LANGUAGE=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=

Compilation also produces errors for these tests along with MetadataEncoderImplTest and MetadataParserImplTest, which may be related to the use of Unicode characters in source files. Example:

/home/tests/briar/briar-tests/src/org/briarproject/data/MetadataEncoderParserImplTest.java:76: error: unmappable character for encoding ASCII
		d.put("test", "abcdefghilkmnopqrst ?????????????????? \uFDD0\uFDD1\uFDD2\uFDD3");
Assignee
Assign to
Milestone B
Milestone
Milestone B (Past due)
Assign milestone
Time tracking
None
Due date
None
Reference: briar/briar#218