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

Error: Failed to convert locale string to UTF8 #2

Open
lovebdsobuj opened this issue Jun 6, 2017 · 1 comment
Open

Error: Failed to convert locale string to UTF8 #2

lovebdsobuj opened this issue Jun 6, 2017 · 1 comment

Comments

@lovebdsobuj
Copy link

Thanks for this very Useful Extension.
Generally this plugin works fine.

But after adding custom text in Bengali language, I got error When I click Datetime Format setting icon.

My Status bar datetime format string is:
আজ %A, %d %B %Y - %I:%M:%S %p

Error: Failed to convert locale string to UTF8: Invalid byte sequence in conversion input

Stack trace:

  dateTimeFormat@/home/username/.local/share/gnome-shell/extensions/datetime-format@Daniel-Khodabakhsh.github.com/Utilities.js:15
  create/updatePreview@/home/username/.local/share/gnome-shell/extensions/datetime-format@Daniel-Khodabakhsh.github.com/FormatTarget.js:49
  create@/home/user/.local/share/gnome-shell/extensions/datetime-format@Daniel-Khodabakhsh.github.com/FormatTarget.js:55
  buildPrefsWidget/<@/home/username/.local/share/gnome-shell/extensions/datetime-format@Daniel-Khodabakhsh.github.com/prefs.js:136
  buildPrefsWidget@/home/username/.local/share/gnome-shell/extensions/datetime-format@Daniel-Khodabakhsh.github.com/prefs.js:136
  Application<._selectExtension@resource:///org/gnome/shell/extensionPrefs/main.js:90
  wrapper@resource:///org/gnome/gjs/modules/lang.js:178
  Application<._onCommandLine@resource:///org/gnome/shell/extensionPrefs/main.js:238
  wrapper@resource:///org/gnome/gjs/modules/lang.js:178
  main@resource:///org/gnome/shell/extensionPrefs/main.js:376
  @<main>:1
@sirrahd
Copy link

sirrahd commented Jan 6, 2018

I created a pull request that fixes this issue. #5

EHJ-52n pushed a commit to EHJ-52n/datetime-format that referenced this issue Nov 3, 2021
…ture/add_timezone_format

Add support for %z as format specifier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants