Skip to content

Commit

Permalink
Manually rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewliebenow committed Oct 25, 2024
1 parent 140d5b7 commit f50e7f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion text/tests/tr/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// SPDX-License-Identifier: MIT
//

use plib::{run_test, run_test_u8, TestPlan, TestPlanU8};
use plib::testing::{run_test, run_test_u8, TestPlan, TestPlanU8};

fn tr_test_binary(args: &[&str], test_data: &[u8], expected_output: &[u8]) {
let str_args = args
Expand Down
5 changes: 2 additions & 3 deletions text/tr.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use clap::Parser;
use gettextrs::{bind_textdomain_codeset, setlocale, textdomain, LocaleCategory};
use plib::PROJECT_NAME;
use setup::{ForRemoval, ForTranslation};
use std::error::Error;
use std::process;
Expand Down Expand Up @@ -290,8 +289,8 @@ fn tr(args: &Args) -> Result<(), Box<dyn std::error::Error>> {

fn main() -> Result<(), Box<dyn Error>> {
setlocale(LocaleCategory::LcAll, "");
textdomain(PROJECT_NAME)?;
bind_textdomain_codeset(PROJECT_NAME, "UTF-8")?;
textdomain(env!("PROJECT_NAME"))?;
bind_textdomain_codeset(env!("PROJECT_NAME"), "UTF-8")?;

let args = Args::parse();

Expand Down

0 comments on commit f50e7f2

Please sign in to comment.