Skip to content

Panic in non-utf-8 code pages in Windows #2069

Description

@if0ne

All lines of code String::from_utf8(output.stdout).unwrap() in pgrx-pg-config cause a panic if Windows uses a non utf-8 code page, e.g. Cyrillic Windows uses 866.

Possible solutions:

  1. Use from_utf8_lossy
  2. Add additional step in Getting Started for Windows: Using UTF-8 in the Windows Terminal

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions