summaryrefslogtreecommitdiff
path: root/cpp_unicode_test/writemisc.pl
diff options
context:
space:
mode:
authorstderr64 <stderr64@null.net>2025-10-28 18:11:09 +0200
committerstderr64 <stderr64@null.net>2025-10-28 18:11:09 +0200
commit557bf9c01fd78848167c1db8327aed259c5b3690 (patch)
treee58d1d10861e2586353f3a14193609134314d34f /cpp_unicode_test/writemisc.pl
parent56346d0b8041caa99ce1ac57becff11e78fd561e (diff)
downloadexperiments-557bf9c01fd78848167c1db8327aed259c5b3690.tar.gz
experiments-557bf9c01fd78848167c1db8327aed259c5b3690.tar.zst
Added some stuff
Diffstat (limited to 'cpp_unicode_test/writemisc.pl')
-rwxr-xr-xcpp_unicode_test/writemisc.pl25
1 files changed, 25 insertions, 0 deletions
diff --git a/cpp_unicode_test/writemisc.pl b/cpp_unicode_test/writemisc.pl
new file mode 100755
index 0000000..43ba4ec
--- /dev/null
+++ b/cpp_unicode_test/writemisc.pl
@@ -0,0 +1,25 @@
+#!/usr/bin/perl
+use IO::File;
+
+my $charcode = 0x2600;
+
+my $out_string = "";
+
+for ( ; $charcode < 0x26FF; $charcode++ ){
+ $out_string .= chr( $charcode );
+}
+
+$out_string .= "\n";
+
+undef $charcode;
+
+open( my $ofile, ">:encoding(UTF-8)", "unicodechars.txt" ) or die "Failed to open file for writing";;
+
+print( $ofile $out_string );
+
+undef $ofile;
+undef $out_string;
+
+print( "Finished writing to file\n" );
+
+exit( 0 );