Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Enable umlaut characters for prompts #1195

Open
DevFreeze opened this issue Dec 19, 2023 · 0 comments
Open

fix: Enable umlaut characters for prompts #1195

DevFreeze opened this issue Dec 19, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@DevFreeze
Copy link

Description

When using mason_logger's prompt function with an umlaut, the character is not displayed correctly.

Steps To Reproduce

Create a new Dart app with dart create. Add mason_logger as a dependency and replace bin\project_name.dart with:

import 'package:mason_logger/mason_logger.dart';

void main(List<String> arguments) {
  final logger = Logger();
  final name = logger.prompt('What is your name?');
  print('Hello, $name!');
}

Expected Behavior

When entering a name with an Umlaut, e.g.: John Dö, then the output should also display the umlaut correctly.

Observed Behavior

$ dart run .\mason_logger_repro.dart my_command
What is your name? John Dö
Hello, John Dö!

@DevFreeze DevFreeze added the bug Something isn't working label Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant